0.23.0 #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: release | |
on: | |
push: | |
tags: ['v*'] | |
permissions: | |
id-token: write | |
contents: read | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
release: | |
runs-on: ['hyperenv', 'medium-eu-central-1'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: npm | |
- uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: arn:aws:iam::730350136264:role/github-openid-connect | |
role-session-name: github-actions-marbot | |
aws-region: eu-central-1 | |
- run: 'npm install' | |
- run: 'aws cloudformation package --template-file mastodon.yaml --s3-bucket mastodon-on-aws-cloudformation --output-template-file quickstart.yml' | |
- run: 'aws s3 cp quickstart.yml s3://mastodon-on-aws-cloudformation/${GITHUB_REF_NAME}/quickstart.yml' | |
- run: 'aws s3 cp quickstart.yml s3://mastodon-on-aws-cloudformation/latest/quickstart.yml' |