-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (31 loc) · 1008 Bytes
/
Copy pathrelease.yml
File metadata and controls
38 lines (31 loc) · 1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get version from tag
id: version
env:
REF_NAME: ${{ github.ref_name }}
run: echo "VERSION=$REF_NAME" >> "$GITHUB_OUTPUT"
- name: Package source files
working-directory: src
env:
VERSION: ${{ steps.version.outputs.VERSION }}
run: find . -name '*.cs' -print0 | xargs -0 zip -r "../CChatGUIDStatsLogger-${VERSION}.zip"
- name: Create GitHub Release
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
env:
VERSION: ${{ steps.version.outputs.VERSION }}
with:
name: "CChatGUIDStatsLogger ${{ steps.version.outputs.VERSION }}"
files: "CChatGUIDStatsLogger-${{ steps.version.outputs.VERSION }}.zip"
generate_release_notes: true