Skip to content

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
  • Loading branch information
niallthomson committed Mar 7, 2025
1 parent 16d6144 commit f8373ca
Showing 1 changed file with 10 additions and 27 deletions.
37 changes: 10 additions & 27 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,17 @@ name: Release
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- uses: googleapis/release-please-action@v4
id: release

- name: "Get AWS credentials"
if: ${{ steps.release.outputs.release_created }}
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: us-east-1
role-session-name: GithubActionsSession

- name: "Login to Amazon ECR Public"
id: login-ecr-public
if: ${{ steps.release.outputs.release_created }}
uses: aws-actions/amazon-ecr-login@v2
with:
registry-type: public

- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
with:
ref: ${{ steps.release.outputs.tag_name }}

- name: "Publish artifacts"
if: ${{ steps.release.outputs.release_created }}
uses: ./.github/actions/publish-artifacts
with:
tag: ${{ steps.release.outputs.tag_name }}
ecr-repository: ${{ secrets.AWS_ECR_REPOSITORY }}
gh-token: ${{ secrets.GITHUB_TOKEN }}
artifacts:
uses: ./.github/workflows/artifacts.yaml
needs: release-please
if: needs.release-please.outputs.release_created
with:
version: ${{ needs.release-please.outputs.tag_name }}
secrets: inherit

0 comments on commit f8373ca

Please sign in to comment.