Skip to content

Commit 6e2f983

Browse files
committed
Add release action
1 parent 06cbf1e commit 6e2f983

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
build-win:
10+
runs-on: windows-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Setup dependencies
16+
run: |
17+
rustup update stable
18+
rustup default stable
19+
20+
- name: Build
21+
run: |
22+
powershell ./build.ps1
23+
24+
- name: Release
25+
uses: softprops/action-gh-release@v2
26+
if: startsWith(github.ref, 'refs/tags/')
27+
with:
28+
name: ${{ github.ref_name }}
29+
draft: true
30+
files: ./dist/tabletdrivercleanup.zip
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)