-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #559 from typemytype/manual-app-trigger
Allow manual trigger; only release when on tag; but do upload action artifact
- Loading branch information
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
push: | ||
tags: | ||
- "*" | ||
workflow_dispatch: # allow manual trigger | ||
|
||
jobs: | ||
build: | ||
|
@@ -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 }} | ||
|
@@ -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: | ||
|
@@ -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: | ||
|