Skip to content

Commit f6ba520

Browse files
committed
Added workflow file.
1 parent 486f181 commit f6ba520

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

.github/workflows/releaser.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Make Release
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
7+
env:
8+
REPOSITORY_NAME: sigma_aviutl_scripts
9+
10+
TIME_ZONE: Asia/Tokyo
11+
# Time zone for the timestamp when releasing.
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
release:
18+
name: Create Release
19+
if: github.event_name == 'push' && github.ref_type == 'tag'
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: write
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
with:
27+
submodules: recursive
28+
29+
- name: Pack and compress
30+
run: |
31+
mkdir pack
32+
cp *.anm pack
33+
cp *.obj pack
34+
cp *.scn pack
35+
cp *.lua pack
36+
cp -R exa pack/exa
37+
cp -R figure pack/figure
38+
cp Credits.md pack/Credits.md
39+
cp LICENSE pack/LICENSE
40+
cd pack
41+
zip -r ../${{ env.REPOSITORY_NAME }}-${{ github.ref_name }}.zip *
42+
# rename .zip file for downloading if necessary.
43+
44+
- name: Pack README
45+
run: |
46+
mkdir pack2
47+
cp README.md pack2/README.md
48+
cp about_sigma_lib.md pack2/about_sigma_lib.md
49+
cp about_sigma_rot_helper.md pack2/about_sigma_rot_helper.md
50+
cp -R assets pack2/assets
51+
cd pack2
52+
zip -r ../README-${{ github.ref_name }}.zip *
53+
# rename .zip file for downloading if necessary.
54+
55+
- name: Release
56+
uses: softprops/action-gh-release@v2
57+
with:
58+
name: 'v${{ github.ref_name }}'
59+
files: '*.zip'
60+
draft: true
61+
body: THIS IS A DRAFT MESSAGE.

0 commit comments

Comments
 (0)