-
Notifications
You must be signed in to change notification settings - Fork 25
43 lines (35 loc) · 1.13 KB
/
make_code_archive.yml
File metadata and controls
43 lines (35 loc) · 1.13 KB
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: Archive workflow
on:
workflow_call:
jobs:
extract_version:
name: Extract Version
uses: ./.github/workflows/extract_version.yml
make_code_archive:
name: Build & Upload
runs-on: ubuntu-latest
needs: extract_version
steps:
- name: Reconfigure git
run: |
git config --global --add safe.directory '*'
git config --global --list
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Download git-archive-all.sh
run: |
wget https://raw.githubusercontent.com/fabacab/git-archive-all.sh/refs/heads/master/git-archive-all.sh
chmod +x git-archive-all.sh
- name: Archive Shamrock with submodules
run: |
./git-archive-all.sh
ls
- name: rename archive
run: |
mv Shamrock.tar shamrock-${{ needs.extract_version.outputs.version }}.tar
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: shamrock-${{ needs.extract_version.outputs.version }}.tar
path: shamrock-${{ needs.extract_version.outputs.version }}.tar