Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/release-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
tags:
- "v*"
workflow_dispatch:
inputs:
publish:
description: "Publish: tag v<version> on this commit of main and create the GitHub release"
type: boolean
default: false

permissions:
contents: write
Expand Down Expand Up @@ -73,16 +78,18 @@ jobs:
dist/AppTrackr_Portable.zip

- name: Check release notes
if: github.ref_type == 'tag'
if: github.ref_type == 'tag' || (inputs.publish && github.ref == 'refs/heads/main')
shell: pwsh
run: |
$notes = "docs/releases/${{ steps.version.outputs.value }}.md"
if (-not (Test-Path $notes)) { Write-Error "Missing $notes (update steps shown on the release page)"; exit 1 }

- name: Publish release
if: github.ref_type == 'tag'
if: github.ref_type == 'tag' || (inputs.publish && github.ref == 'refs/heads/main')
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ steps.version.outputs.value }}
target_commitish: ${{ github.sha }}
name: AppTrackr ${{ steps.version.outputs.value }}
body_path: docs/releases/${{ steps.version.outputs.value }}.md
files: |
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ git tag v1.1.0
git push origin v1.1.0
```

Or, without a local tag: *Actions > Release Windows Build > Run workflow* on `main` with *Publish* ticked.
The workflow tags `v<version>` on that commit and publishes the release.

`.github/workflows/release-windows.yml` checks that the tag matches the version and that the release notes
exist, runs the tests, builds the PyInstaller bundle, self-tests it, packages the portable zip and the Inno
Setup installer, and publishes both with the notes as the GitHub release. `ci.yml` runs lint and tests on Windows and Linux for every push and pull request.
Expand Down
Loading