Skip to content

Commit

Permalink
Have release created by aws-viewer-for-cbmc-release-ci
Browse files Browse the repository at this point in the history
Making github-bot user create the release would not trigger further
actions (in our case we want brew and pypi release actions to be
triggered).
  • Loading branch information
tautschnig committed Jul 16, 2024
1 parent 3c45df3 commit 0f1ece3
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ on:
tags:
- viewer-*

env:
AWS_ROLE: arn:aws:iam::${{secrets.AWS_ACCOUNT}}:role/PublisherTokenReader
AWS_REGION: us-west-2

jobs:
Release:
name: CBMC viewer release
runs-on: ubuntu-20.04
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -26,6 +28,14 @@ jobs:
echo "Setup and source versions ${{env.SETUP_VERSION}} and ${{env.SOURCE_VERSION}} did not match tag version ${{env.TAG_VERSION}}"
exit 1
fi
- name: Authenticate GitHub workflow to AWS
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ env.AWS_ROLE }}
aws-region: ${{ env.AWS_REGION }}
- name: Fetch secrets
run: |
echo "GITHUB_TOKEN=$(aws secretsmanager get-secret-value --secret-id RELEASE_CI_ACCESS_TOKEN | jq -r '.SecretString')" >> $GITHUB_ENV
- name: Create release
uses: actions/create-release@v1
with:
Expand Down

0 comments on commit 0f1ece3

Please sign in to comment.