-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (43 loc) · 1.3 KB
/
publish.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
44
45
name: Publish
on:
push:
branches:
- main
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: paulhatch/[email protected]
id: next_semantic_version
with:
branch: main
tag_prefix: "v"
major_pattern: "💥"
minor_pattern: "✨"
format: "${major}.${minor}.${patch}"
short_tags: false
bump_each_commit: true
- uses: leafo/[email protected]
with:
luaVersion: "5.1"
- name: Perform compress
shell: bash
run: |
cp -r _src/lua lua
cd compress
lua app.lua files_to_compress.dat
- uses: edgarrc/action-7z@v1
with:
args: 7z a -t7z -mx=9 4wk_crossfades${{steps.next_semantic_version.outputs.version_tag}}.7z ./lua/
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "v${{steps.next_semantic_version.outputs.version}}"
prerelease: false
title: "${{steps.next_semantic_version.outputs.version_tag}}"
files: |
4wk_crossfades${{steps.next_semantic_version.outputs.version_tag}}.7z