Skip to content

Commit 50ed616

Browse files
committed
CI: manual release action
1 parent 9dba3df commit 50ed616

File tree

1 file changed

+52
-3
lines changed

1 file changed

+52
-3
lines changed

.github/workflows/release.yaml

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,58 @@ on: workflow_dispatch
77

88
jobs:
99

10-
msbuild:
10+
release:
1111
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
lua:
16+
- lua51
17+
- lua52
18+
- lua53
19+
- lua54
20+
1221
steps:
13-
- name: noop
14-
run: echo "This is blank"
22+
- name: Grab README
23+
uses: actions/checkout@v3
24+
with:
25+
path: src
26+
27+
- name: Download ${{ matrix.lua }} Artifacts
28+
id: download-artifact
29+
uses: dawidd6/action-download-artifact@v2
30+
with:
31+
workflow: build.yaml
32+
name: ${{ matrix.lua }}|license
33+
name_is_regexp: true
34+
35+
- name: Bundle ${{ matrix.lua }}
36+
run: |
37+
for d in *-lua*; do
38+
cp lua-apclientpp-license/* $d/
39+
done
40+
mkdir -p ${{ matrix.lua }}
41+
cp src/README.md ${{ matrix.lua }}/
42+
for d in lua-apclientpp-${{ matrix.lua }}*; do
43+
mkdir -p ${{ matrix.lua }}/${d:15}
44+
cp $d/* ${{ matrix.lua }}/${d:15}/
45+
done
46+
7z a -mx=9 -ms=on ${{ matrix.lua }}.7z ${{ matrix.lua }}
47+
48+
- name: Upload ${{ matrix.lua }} Bundle
49+
uses: actions/upload-artifact@v3
50+
with:
51+
name: ${{ matrix.lua }}
52+
path: ${{ matrix.lua }}.7z
53+
54+
- name: Set env
55+
if: ${{ github.ref_type == 'tag' }}
56+
run: echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
1557

58+
- name: Release ${{ matrix.lua }} Bundle
59+
if: ${{ github.ref_type == 'tag' }}
60+
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
61+
with:
62+
draft: true
63+
name: lua-apclientpp ${{ env.RELEASE_TAG }}
64+
files: ${{ matrix.lua }}.7z

0 commit comments

Comments
 (0)