| 1 | name: Release |
| 2 | on: |
| 3 | workflow_dispatch: |
| 4 | push: |
| 5 | branches: |
| 6 | - master |
| 7 | paths: |
| 8 | - 'package.json' |
| 9 | |
| 10 | jobs: |
| 11 | build: |
| 12 | name: Release |
| 13 | runs-on: ubuntu-latest |
| 14 | steps: |
| 15 | - name: Checkout |
| 16 | uses: actions/checkout@v6 |
| 17 | with: |
| 18 | fetch-depth: 0 |
| 19 | - name: Release |
| 20 | uses: SerenModz21/github-action-npm-release@master |
| 21 | id: release |
| 22 | - name: Print release output |
| 23 | if: ${{ steps.release.outputs.released == 'true' }} |
| 24 | run: echo Release ID ${{ steps.release.outputs.release_id }} |
| 25 | - name: Trigger Docker builds |
| 26 | if: ${{ steps.release.outputs.released == 'true' }} |
| 27 | run: | |
| 28 | gh workflow run docker-alpine.yml -r ${{ steps.release.outputs.release_tag }} |
| 29 | gh workflow run docker-debian.yml -r ${{ steps.release.outputs.release_tag }} |
| 30 | env: |
| 31 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |