Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit e92589d

Browse files
committed
ci: create release when pushing a tag
1 parent 641c6fd commit e92589d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
command: test
5757

5858
- name: Build binary in release mode
59-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
59+
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) }}
6060
uses: actions-rs/cargo@v1
6161
with:
6262
command: build
@@ -68,3 +68,11 @@ jobs:
6868
with:
6969
name: pass4thewin-win64
7070
path: target/release/pass4thewin.exe
71+
72+
- name: Release
73+
uses: softprops/action-gh-release@v1
74+
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
75+
with:
76+
files: target/release/pass4thewin.exe
77+
env:
78+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)