Skip to content

Commit da84a77

Browse files
committed
Publish a new release build on new tag
1 parent 50ac954 commit da84a77

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/build.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
push:
44
branches:
55
- master
6+
tags:
7+
- '*'
68
pull_request:
79
branches:
810
- master
@@ -72,7 +74,13 @@ jobs:
7274
sudo chroot $output /home/run.sh --version
7375
sudo cp $output/home/build/pixelpilot .
7476
75-
- name: Upload
77+
- name: Versioned release
78+
if: startsWith(github.ref, 'refs/tags/')
79+
uses: softprops/action-gh-release@v2
80+
with:
81+
files: pixelpilot
82+
83+
- name: Upload latest
7684
if: github.event_name != 'pull_request'
7785
uses: softprops/action-gh-release@v2
7886
with:

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,4 @@ Pixelpilot starts several threads:
102102
* update project version in `CMakeList.txt`, `project(pixelpilot, VERSION <X.Y.Z>)`, commit
103103
* push that commit to master (either directly or with PR)
104104
* tag the tip of the master branch with the same `<X.Y.Z>` version
105-
* run `git push --tags`
105+
* run `git push --tags`; it will publish a new GitHub release

0 commit comments

Comments
 (0)