From 5b15bf9b351539c90120cedea63a4075e50e74ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Andr=C3=A9s=20Dorado=20Su=C3=A1rez?= Date: Mon, 20 Jan 2025 17:41:54 -0500 Subject: [PATCH] fix(.github): refactor release.yml --- .github/workflows/release.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f30d1edc..c27e1ffc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,12 +34,12 @@ jobs: uses: actions-rs/cargo@v1 with: command: build - args: --profile production + args: --profile production --locked -p kreivo-runtime - name: Upload runtime to artifacts uses: actions/upload-artifact@v4 with: - name: ${{ github.ref }}-runtime + name: ${{ github.run_number }}-runtime path: ./target/production/wbuild/kreivo-runtime/kreivo_runtime.compact.compressed.wasm release: @@ -53,16 +53,12 @@ jobs: uses: actions/download-artifact@v4 with: name: ${{ github.run_number }}-runtime - path: ./target/release - name: Generate release notes env: ENDPOINT: ${{ endsWith(github.ref, '-pre') && 'testnet.virto.dev' || 'kreivo.io' }} run: | - echo "You can create the \`authorizeUpgrade\` extrinsic [here](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2F" \ - > RELEASE_NOTES.txt - echo $ENDPOINT >> RELEASE_NOTES.txt - echo "#/extrinsics/decode/0x00090000000000000000000000000000000000000000000000000000000000000000)." \ + echo "You can create the \`authorizeUpgrade\` extrinsic [here](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2F"$ENDPOINT"#/extrinsics/decode/0x00090000000000000000000000000000000000000000000000000000000000000000)." \ >> RELEASE_NOTES.txt - name: Publish Release