forked from aws-samples/amazon-rds-init-cdk
-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (48 loc) · 1.75 KB
/
cloudpod_release.yml
File metadata and controls
53 lines (48 loc) · 1.75 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
on:
workflow_dispatch:
inputs:
release-tag:
type: string
required: true
push:
paths-ignore:
- 'README.md'
branches:
- main
permissions:
contents: write
name: Create Release
jobs:
build:
uses: ./.github/workflows/setup.yml
secrets: inherit
with:
store-cloudpod: "true"
localstack-version: ${{ inputs.release-tag || 'latest'}}
upload:
needs: build
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- name: Download Pod Artifacts
uses: actions/download-artifact@v3
with:
name: cloudpod
- name: Display structure of downloaded files
run: ls -R
- name: Prepare Release Notes
run: |
echo "This release includes the Cloud Pod of the sample created with LocalStack Version \`${{ inputs.release-tag || 'latest'}}\`." > Release.txt
echo "### MySQL" >> Release.txt
echo "The pod was created with `mysql` engine." >> Release.txt
echo "You can click the Launchpad to inject the \`mysql\` version of the pod into your running LocalStack instance:" >> Release.txt
echo "[](https://app.localstack.cloud/launchpad?url=https://github.com/$GITHUB_REPOSITORY/releases/download/${{ inputs.release-tag || 'latest'}}/release-pod-mysql.zip)" >> Release.txt
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: "${{ inputs.release-tag || 'latest'}}"
name: "Cloud Pod for LocalStack Version '${{ inputs.release-tag || 'latest'}}'"
body_path: ./Release.txt
files: |
./release-pod-mysql.zip