Merge pull request #80 from studio24/release-please--branches--main #59
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-please | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Create release | |
id: release | |
uses: google-github-actions/release-please-action@v3 | |
with: | |
release-type: simple | |
# Run only once a new release is created: | |
- uses: actions/checkout@master | |
if: ${{ steps.release.outputs.release_created }} | |
- name: Create release files | |
run: | | |
zip -r amplify.zip assets-src .nvmrc package.json svgo.config.js webpack.config.js | |
if: ${{ steps.release.outputs.release_created }} | |
- name: Upload release files | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
file: ./amplify.zip | |
asset_name: amplify.zip | |
tag: ${{ steps.release.outputs.tag_name }} | |
overwrite: true | |
if: ${{ steps.release.outputs.release_created }} |