2.13.0-b9 #19
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: Release Created | |
on: | |
release: | |
types: [published] | |
jobs: | |
validate-version: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Validate version using the API | |
shell: bash | |
run: | | |
RESULT=$(curl -s "https://update.api.macro-deck.app/versionname/validate/${{ github.event.release.name }}") | |
if [[ "$RESULT" != "true" ]]; then | |
echo "Version '${{ github.event.release.name }}' is not valid according to the update API." | |
exit 1 | |
fi | |
tests: | |
name: Execute Tests | |
uses: ./.github/workflows/tests.yml | |
secrets: inherit | |
release-windows: | |
name: "Build and Push Macro Deck for Windows" | |
uses: ./.github/workflows/build-push-windows.yml | |
needs: [tests] | |
secrets: inherit | |
with: | |
version: ${{ github.event.release.name }} | |
branch: ${{ github.event.release.target_commitish }} | |
notify: | |
name: "Notify" | |
runs-on: ubuntu-latest | |
needs: [release-windows] | |
steps: | |
- uses: Macro-Deck-App/Actions/discord-notify-release@main | |
with: | |
version: ${{ github.event.release.name }} | |
is-beta: ${{ github.event.release.prerelease }} | |
webhook-token: ${{ secrets.WEBHOOK_KEY }} |