-
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (49 loc) · 1.33 KB
/
publish-project.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
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Publish Project
on:
workflow_call:
inputs:
release-version:
required: true
type: string
# Make sure jobs cannot overlap.
concurrency:
group: publish-${{ github.ref }}
cancel-in-progress: true
jobs:
publish:
name: Package and publish the project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download project artifacts
uses: actions/download-artifact@v4
with:
path: export
pattern: glasan-fx-*
- name: Untar downloaded artifacts
shell: bash
working-directory: export
run: |
for name in ./*; do
if [ -d "$name" ]; then
cd "./$name"
tar -xvf glasan-fx.tar
rm -f glasan-fx.tar
cd ..
fi
done
- name: Archive project exports
uses: ./.github/actions/zip-folder
with:
directory: export
split: true
- name: Make GitHub Release
uses: ./.github/actions/make-release
with:
release-version: ${{ inputs.release-version }}
- name: Update the release with the project
shell: bash
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release upload ${{ inputs.release-version }} export/*.zip --clobber