Skip to content

Commit

Permalink
Merge pull request #559 from typemytype/manual-app-trigger
Browse files Browse the repository at this point in the history
Allow manual trigger; only release when on tag; but do upload action artifact
  • Loading branch information
justvanrossum authored Jan 27, 2024
2 parents b16d029 + c153310 commit 7a71084
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
tags:
- "*"
workflow_dispatch: # allow manual trigger

jobs:
build:
Expand Down Expand Up @@ -69,6 +70,7 @@ jobs:
path: ./dist/notarize_log.txt

- name: Read CHANGELOG.md
if: startsWith(github.event.ref, 'refs/tags')
id: changelog
env:
GITHUB_REF: ${{ github.ref }}
Expand All @@ -77,7 +79,14 @@ jobs:
# echo "::set-output name=body::$(python app/extract_changes.py)"
echo "body=$(python app/extract_changes.py)" >> $GITHUB_OUTPUT
- name: Storing App Artifact
uses: actions/upload-artifact@v4
with:
name: DrawBot.dmg
path: ./dist/DrawBot.dmg

- name: Create Release
if: startsWith(github.event.ref, 'refs/tags')
id: create_release
uses: actions/create-release@master
env:
Expand All @@ -90,6 +99,7 @@ jobs:
body: ${{ steps.changelog.outputs.body }}

- name: Upload Release Asset
if: startsWith(github.event.ref, 'refs/tags')
id: upload-release-asset
uses: actions/[email protected]
env:
Expand Down

0 comments on commit 7a71084

Please sign in to comment.