Skip to content

Commit

Permalink
ci: revert release workflow changes (#746)
Browse files Browse the repository at this point in the history
* ci: debug

* ci: debug

* ci: revert release workflow changes
  • Loading branch information
DeepakBomjan authored Sep 21, 2023
1 parent 587fb08 commit b0f9956
Showing 1 changed file with 33 additions and 15 deletions.
48 changes: 33 additions & 15 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ jobs:
./gradlew clean build
./gradlew optimizedJar
./gradlew zipOutputOptimizedJars
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: javascore-contracts
path: ./contracts/javascore/build/javascore-contracts.zip
build_wasm:
name: Build Cosmwasm Contracts
runs-on: ubuntu-latest
Expand All @@ -46,15 +50,14 @@ jobs:
run: |
rustup component add rustfmt --toolchain 1.69.0-x86_64-unknown-linux-gnu
rustup component add clippy --toolchain 1.69.0-x86_64-unknown-linux-gnu
bash ./scripts/optimize-cosmwasm.sh "release"
bash ./scripts/optimize-cosmwasm.sh
cd artifacts/archway && zip -r ../../cosmwasm-contracts.zip . -j
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: artifacts
path: |
./contracts/javascore/build/javascore-contracts.zip
./artifacts/archway/cosmwasm-contracts.zip
name: cosmwasm-contracts
path: cosmwasm-contracts.zip
release:
name: Release and Publish
runs-on: ubuntu-latest
Expand All @@ -67,17 +70,24 @@ jobs:
run: |
echo «::set-output name=date::$(date +'%Y-%m-%d')»
echo «::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)»
- name: Download Javascore Artifacts
uses: actions/download-artifact@v2
with:
name: javascore-contracts
path: javascore-contracts

- name: Download Artifacts
- name: Download Cosmwasm Artifacts
uses: actions/download-artifact@v2
with:
name: artifacts
path: release-artifacts
name: cosmwasm-contracts
path: cosmwasm-contracts

- name: Unzip Javascore Artifacts
run: unzip javascore-contracts/javascore-contracts.zip -d javascore-contracts && rm -rf javascore-contracts/javascore-contracts.zip

- name: Unzip Cosmwasm Artifacts
run: unzip cosmwasm-contracts/cosmwasm-contracts.zip -d cosmwasm-contracts && rm -rf cosmwasm-contracts/cosmwasm-contracts.zip

- name: Generate Checksum
run: |
cd release-artifacts; unzip javascore-contracts.zip; unzip cosmwasm-contracts.zip; rm -rf *.zip; sha256sum * > sha256sum.txt
- name: Changelog
uses: scottbrenner/generate-changelog-action@master
id: Changelog
Expand All @@ -101,8 +111,16 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./release-artifacts/*
file: ./javascore-contracts/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true

- name: Upload Cosmwasm contracts to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./cosmwasm-contracts/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true

0 comments on commit b0f9956

Please sign in to comment.