Skip to content

Commit

Permalink
chore: fix CI script for publishing release (#808)
Browse files Browse the repository at this point in the history
## Description

One more attempt to fix the CI script for the publishing release.
  • Loading branch information
aleksuss authored Aug 2, 2023
1 parent 4ecee7d commit 04dfe02
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,24 @@ jobs:
cargo make --profile ${{ matrix.profile }} build-xcc-docker
- run: ls -lH bin/aurora-*${{ matrix.profile }}.wasm
- name: Upload aurora-${{ matrix.profile }}.wasm artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: aurora-${{ matrix.profile }}.wasm
path: bin/aurora-${{ matrix.profile }}.wasm
- name: Upload aurora-factory-${{ matrix.profile }}.wasm artifact
uses: actions/upload-artifact@v2
with:
name: aurora-factory-${{ matrix.profile }}.wasm
path: bin/aurora-factory-${{ matrix.profile }}.wasm
name: contracts
path: bin/aurora*${{ matrix.profile }}.wasm

publish:
name: Publish contracts
runs-on: [self-hosted, heavy]
needs: build
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
- run: ls -la contracts
- name: Publish contracts for ${{ github.ref }} release
uses: svenstaro/upload-release-action@v2
with:
tag: ${{ github.ref }}
file: aurora*.wasm
overwrite: true
file: contracts/aurora*.wasm
repo_token: ${{ secrets.GITHUB_TOKEN }}
file_glob: true
env:
Expand Down

0 comments on commit 04dfe02

Please sign in to comment.