Skip to content

Commit 9aa03bb

Browse files
committed
Add GitHub Actions release pipeline
1 parent 5d69229 commit 9aa03bb

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Generate version
17+
id: version
18+
run: echo "tag=v$(date -u +%Y.%m.%d)-$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
19+
20+
- name: Create Release
21+
uses: softprops/action-gh-release@v2
22+
with:
23+
tag_name: ${{ steps.version.outputs.tag }}
24+
name: ${{ steps.version.outputs.tag }}
25+
body: ${{ github.event.head_commit.message }}
26+
files: |
27+
userscript.js
28+
s1_powerquery_hunting.json

0 commit comments

Comments
 (0)