-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 993 Bytes
/
releaser.yml
File metadata and controls
48 lines (38 loc) · 993 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
39
40
41
42
43
44
45
46
47
48
name: releaser
on:
push:
tags:
- '*'
defaults:
run:
shell: bash
jobs:
releaser:
runs-on: ubuntu-latest
permissions:
contents: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Extract script name
run: |
REPO_BASE=$(basename "${{ github.repository }}")
MIDDLE_PART=$(echo "$REPO_BASE" | sed 's/AviUtl2_\(.*\)_Script/\1/')
echo "SCRIPT_NAME=$MIDDLE_PART" >> $GITHUB_ENV
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Build script
run: |
python tools/build.py --tag ${{ github.ref_name }}
- name: Create release
uses: softprops/action-gh-release@v2
with:
name: ${{ env.SCRIPT_NAME }}_${{ github.ref_name }}
files: 'build/*.zip'
body_path: build/release_note.txt