Package and release #42
Workflow file for this run
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: Package and release | |
on: | |
push: | |
tags: | |
- '**' | |
workflow_dispatch: # so we can trigger it from another workflow | |
permissions: | |
contents: write # required to create a release | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone project | |
uses: actions/checkout@v4 | |
- name: Trim changelog | |
run: sed -ni '1p;2,/^###/{/^###/q;p;}' CHANGELOG.md | |
- name: Package and release | |
uses: BigWigsMods/packager@v2 | |
if: github.ref_type == 'tag' # ensure no rogue triggers | |
env: | |
CF_API_KEY: ${{ secrets.CF_API_KEY }} | |
WOWI_API_TOKEN: ${{ secrets.WOWI_API_TOKEN }} | |
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }} | |
WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }} | |
- name: Notify on failures | |
# when triggered by another workflow we won't get notifications from failures, this is a workaround | |
if: ${{ failure() }} | |
uses: appleboy/[email protected] | |
with: | |
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }} | |
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }} | |
message: | | |
Workflow "${{ github.workflow }}" failed during job "${{ github.job }}" | |
<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}> |