-
Notifications
You must be signed in to change notification settings - Fork 25
43 lines (41 loc) · 1.16 KB
/
release_superfile.yml
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
name: Release superfile
on: push
jobs:
superfile:
runs-on: ubuntu-20.04
if: "startsWith(github.event.head_commit.message, 'RELEASE')"
steps:
- id: changelog
uses: zhaojh329/auto-changelog@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
- id: checkout
uses: actions/checkout@v2
- name: Download lua
uses: leafo/[email protected]
with:
luaVersion: "5.3.5"
- id: superfile
run: |
cd luapack
lua main.lua ../addons/igs-core/lua superfile.json
- id: igsmod
run: |
cd addons
zip -x "*.DS_Store" -r igs-mod.zip igs-modification/
- id: parse_version
run: |
VERSION="${{ github.event.head_commit.message }}"
echo ::set-output name=parsed_version::${VERSION:8}
- id: release
uses: softprops/action-gh-release@v1
with:
body: ${{steps.changelog.outputs.changelog}}
tag_name: ${{ steps.parse_version.outputs.parsed_version }}
#draft: true
prerelease: false
files: |
luapack/superfile.json
addons/igs-mod.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}