-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 914 Bytes
/
release.yml
File metadata and controls
29 lines (29 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
name: release
on:
push:
tags: ['v*']
permissions:
id-token: write
contents: read
defaults:
run:
shell: bash
jobs:
release:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
- uses: aws-actions/configure-aws-credentials@v1-node16
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'