|
|
|
@ -4,39 +4,39 @@ on:
|
|
|
|
|
types: [published] |
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
|
publish: |
|
|
|
|
name: publish |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
timeout-minutes: 60 |
|
|
|
|
steps: |
|
|
|
|
- name: Checkout repository |
|
|
|
|
uses: actions/checkout@v3 |
|
|
|
|
# publish: |
|
|
|
|
# name: publish |
|
|
|
|
# runs-on: ubuntu-latest |
|
|
|
|
# timeout-minutes: 60 |
|
|
|
|
# steps: |
|
|
|
|
# - name: Checkout repository |
|
|
|
|
# uses: actions/checkout@v3 |
|
|
|
|
|
|
|
|
|
- name: Install Rust toolchain |
|
|
|
|
uses: actions-rs/toolchain@v1 |
|
|
|
|
with: |
|
|
|
|
toolchain: stable |
|
|
|
|
profile: minimal |
|
|
|
|
override: true |
|
|
|
|
# - name: Install Rust toolchain |
|
|
|
|
# uses: actions-rs/toolchain@v1 |
|
|
|
|
# with: |
|
|
|
|
# toolchain: stable |
|
|
|
|
# profile: minimal |
|
|
|
|
# override: true |
|
|
|
|
|
|
|
|
|
- name: Install cargo-workspaces |
|
|
|
|
uses: actions-rs/install@v0.1 |
|
|
|
|
with: |
|
|
|
|
crate: cargo-workspaces |
|
|
|
|
# - name: Install cargo-workspaces |
|
|
|
|
# uses: actions-rs/install@v0.1 |
|
|
|
|
# with: |
|
|
|
|
# crate: cargo-workspaces |
|
|
|
|
|
|
|
|
|
- name: Release |
|
|
|
|
env: |
|
|
|
|
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |
|
|
|
|
PATCH: ${{ github.run_number }} |
|
|
|
|
shell: bash |
|
|
|
|
run: | |
|
|
|
|
git config --global user.email "runner@gha.local" |
|
|
|
|
git config --global user.name "Github Action" |
|
|
|
|
cargo workspaces publish \ |
|
|
|
|
--from-git \ |
|
|
|
|
--yes \ |
|
|
|
|
--no-git-commit \ |
|
|
|
|
skip |
|
|
|
|
# - name: Release |
|
|
|
|
# env: |
|
|
|
|
# CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |
|
|
|
|
# PATCH: ${{ github.run_number }} |
|
|
|
|
# shell: bash |
|
|
|
|
# run: | |
|
|
|
|
# git config --global user.email "runner@gha.local" |
|
|
|
|
# git config --global user.name "Github Action" |
|
|
|
|
# cargo workspaces publish \ |
|
|
|
|
# --from-git \ |
|
|
|
|
# --yes \ |
|
|
|
|
# --no-git-commit \ |
|
|
|
|
# skip |
|
|
|
|
|
|
|
|
|
doc-publish: |
|
|
|
|
needs: publish |
|
|
|
@ -62,6 +62,7 @@ jobs:
|
|
|
|
|
~/.cargo/git |
|
|
|
|
~/.cargo/registry |
|
|
|
|
key: ${{ runner.os }}-npm-build-target-${{ hashFiles('**/package-lock.json') }} |
|
|
|
|
- run: wasm-pack build ./boa_wasm |
|
|
|
|
- run: npm run build:prod |
|
|
|
|
- name: Deploy |
|
|
|
|
uses: peaceiris/actions-gh-pages@v3 |
|
|
|
@ -105,6 +106,6 @@ jobs:
|
|
|
|
|
uses: svenstaro/upload-release-action@v2 |
|
|
|
|
with: |
|
|
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
|
file: target/release/${{ matrix.binary_name }} |
|
|
|
|
file: target/${{ matrix.target }}/release/${{ matrix.binary_name }} |
|
|
|
|
asset_name: ${{ matrix.asset_name }} |
|
|
|
|
tag: ${{ github.ref }} |
|
|
|
|