Browse Source

Fixing the release build errors (#3118)

* Fixing the release build errors

* Commenting out the publish job
pull/3120/head
Iban Eguia Moraza 1 year ago committed by GitHub
parent
commit
1c12d0602d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 63
      .github/workflows/release.yml

63
.github/workflows/release.yml

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

Loading…
Cancel
Save