-
Notifications
You must be signed in to change notification settings - Fork 298
64 lines (51 loc) · 1.4 KB
/
release-archive-artifact.yml
File metadata and controls
64 lines (51 loc) · 1.4 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: release-archive-artifact.yml
on:
push:
# tags:
# - "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/archive
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/archive_unzipped
- name: working dir
run: |
pwd
echo ${{runner.workspace}}
echo ""
ls ${{runner.workspace}}/HiGHS
# ls
# echo $GITHUB_WORKSPACE
- name: Generate archive artifact
run: |
pwd
cd ${{runner.workspace}}
pwd
tar -czvf source-archive.tar.gz HiGHS
# --exclude='./archive'
- name: unzip archive
run: |
cd ${{runner.workspace}}
tar -xvzf source-archive.tar.gz -C ${{runner.workspace}}/archive_unzipped
- name: ls unziped archive
run: |
cd ${{runner.workspace}}/archive_unzipped
pwd
ls
cd HiGHS
ls
- name: copy archive
run: |
cp ${{runner.workspace}}/source-archive.tar.gz .
ls
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
source-archive.tar.gz