fix workflow #2
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
on: | |
workflow_dispatch: | |
inputs: | |
release_tag: | |
type: string | |
required: true | |
database_type: | |
type: string | |
required: true | |
push: | |
paths-ignore: | |
- 'README.md' | |
branches: | |
- main | |
- cloudpod_workflow | |
name: Create Release | |
jobs: | |
build: | |
uses: ./.github/workflows/setup.yml | |
secrets: inherit | |
with: | |
store-cloudpod: "true" | |
database-type: ${{ inputs.database_type || 'mysql' }} | |
localstack-version: ${{ inputs.release_tag || 'latest'}} | |
upload: | |
needs: build | |
name: Upload Release Asset | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download Artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: cloudpod | |
- name: Display structure of downloaded files | |
run: ls -R | |
- name: Build project # This would actually build your project, using zip for an example artifact | |
run: | | |
echo "Cloudpod Release Version ${{ inputs.release_tag || 'latest'}}" > Release.txt | |
- name: Create Release | |
id: create_release | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: "v-${{ inputs.release_tag || 'latest'}}" | |
name: "Cloudpod for LocalStack release ${{ inputs.release_tag || 'latest'}}" | |
body: "Test Release ${{ inputs.release_tag || 'latest'}} for database ${{ inputs.database_type || 'mysql' }}" | |
files: | | |
./release-pod.zip | |
Release.txt |