From 69baa4fe30e6742a47845f79aa6560712193bfe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20K=C3=B8hler=20Warmdahl?= Date: Thu, 21 Nov 2024 10:40:27 +0100 Subject: [PATCH] Remove if --- .github/workflows/release.yaml | 48 +++++++++++++++------------------- 1 file changed, 21 insertions(+), 27 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4da302d..3469d57 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -2,8 +2,6 @@ name: Build and Push rosetta on: push: - branches: - - ekw/SRE-999/release-rosetta tags: - "*.*.*" @@ -39,25 +37,25 @@ jobs: fi echo "outfile=concordium-rosetta-test-$CARGO_VERSION" >> $GITHUB_OUTPUT -# release-rosetta-macos: -# needs: rosetta-version -# runs-on: macos-latest -# environment: release -# env: -# OUTFILE: ${{needs.rosetta-version.outputs.OUTFOLDER}}/macos/${{needs.rosetta-version.outputs.OUTFILE_SHORT}} -# steps: -# - name: Checkout Repository -# uses: actions/checkout@v4 -# with: -# ref: ${{ github.ref_name }} -# submodules: recursive -# -# - name: Configure AWS Credentials -# uses: aws-actions/configure-aws-credentials@v4 -# with: -# aws-region: "eu-west-1" -# role-to-assume: ${{ env.IAM_ROLE }} -# role-session-name: ReleaseRosettaSession + release-rosetta-macos: + needs: rosetta-version + runs-on: macos-latest + environment: release + env: + OUTFILE: ${{needs.rosetta-version.outputs.OUTFOLDER}}/macos/${{needs.rosetta-version.outputs.OUTFILE_SHORT}} + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + with: + ref: ${{ github.ref_name }} + submodules: recursive + + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + aws-region: "eu-west-1" + role-to-assume: ${{ env.IAM_ROLE }} + role-session-name: ReleaseRosettaSession # # # - name: Check if version exist in s3 @@ -79,7 +77,6 @@ jobs: # # - name: Publish # run: | -# ls ./target/release/concordium-rosetta # aws s3 cp ./target/release/concordium-rosetta ${{ env.OUTFILE }} # # release-rosetta-windows: @@ -123,7 +120,6 @@ jobs: # # - name: Publish # run: | -# ls ./target/release/concordium-rosetta.exe # aws s3 cp ./target/release/concordium-rosetta.exe ${{ env.OUTFILE }} release-rosetta-docker: @@ -132,7 +128,6 @@ jobs: steps: - name: Login to Docker Hub - if: ${{ secrets.DOCKERHUB_TOKEN }} uses: docker/login-action@v3 with: username: 'concordium' @@ -146,7 +141,7 @@ jobs: - name: Set image tag if correctly formatted run: | - TAG_VERSION="1.2.0"#${{ github.ref_name }} + TAG_VERSION=${{ github.ref_name }} if [ -n "Cargo.toml" ] ; then CARGO_VERSION=$(yq .package.version "Cargo.toml") if [ ! "$TAG_VERSION" = "$CARGO_VERSION" ] ; then @@ -218,5 +213,4 @@ jobs: # # - name: Publish # run: | -# ls ./target/release/concordium-rosetta -# aws s3 cp ./target/release/concordium-rosetta ${{ env.OUTFILE }} \ No newline at end of file +# aws s3 cp ./target/release/concordium-rosetta ${{ env.OUTFILE }}