Skip to content

Commit

Permalink
Get version in another job
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilKWarmdahl committed Nov 19, 2024
1 parent d73e7c4 commit bad4590
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down Expand Up @@ -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: |
Expand All @@ -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 }}

0 comments on commit bad4590

Please sign in to comment.