diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 755992f..fdc5f5b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -17,6 +17,14 @@ permissions: contents: read jobs: + rosetta-version: + runs-on: ubuntu-latest + steps: + - name: Get the rosetta version + run: | + CARGO_VERSION=$(yq .package.version "Cargo.toml") + echo "OUTFILE_SHORT=${{ env.OUTFOLDER }}/windows/concordium-rosetta-${ CARGO_VERSION }" >> $GITHUB_ENV + release-rosetta-macos: runs-on: macos-latest environment: release @@ -36,8 +44,7 @@ jobs: - name: Get the rosetta version run: | - CARGO_VERSION=$(yq .package.version "Cargo.toml") - echo "OUTFILE=${{ env.OUTFOLDER }}/macos/concordium-rosetta-${CARGO_VERSION}}" >> $GITHUB_ENV + echo "OUTFILE=${{ env.OUTFILE_SHORT }}" >> $GITHUB_ENV - name: Check if version exist in s3 run: | @@ -81,7 +88,7 @@ jobs: - name: Get the rosetta version run: | CARGO_VERSION=$(yq .package.version "Cargo.toml") - echo "OUTFILE=${{ env.OUTFOLDER }}/windows/concordium-rosetta-${ CARGO_VERSION }.exe" >> $GITHUB_ENV + echo "OUTFILE=${{ env.OUTFILE_SHORT }}.exe" >> $GITHUB_ENV - name: Check if version exist in s3 run: | @@ -103,4 +110,4 @@ jobs: - name: Publish run: | echo ${{ env.OUTFILE }} -# aws s3 cp ./target/release/concordium-rosetta ${{ env.OUTFILE }} +# aws s3 cp ./target/release/concordium-rosetta.exe ${{ env.OUTFILE }}