Skip to content

Commit

Permalink
Remove if
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilKWarmdahl committed Nov 21, 2024
1 parent 48a88db commit 69baa4f
Showing 1 changed file with 21 additions and 27 deletions.
48 changes: 21 additions & 27 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Build and Push rosetta

on:
push:
branches:
- ekw/SRE-999/release-rosetta
tags:
- "*.*.*"

Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -132,7 +128,6 @@ jobs:
steps:

- name: Login to Docker Hub
if: ${{ secrets.DOCKERHUB_TOKEN }}
uses: docker/login-action@v3
with:
username: 'concordium'
Expand All @@ -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
Expand Down Expand Up @@ -218,5 +213,4 @@ jobs:
#
# - name: Publish
# run: |
# ls ./target/release/concordium-rosetta
# aws s3 cp ./target/release/concordium-rosetta ${{ env.OUTFILE }}
# aws s3 cp ./target/release/concordium-rosetta ${{ env.OUTFILE }}

0 comments on commit 69baa4f

Please sign in to comment.