File tree Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -90,13 +90,27 @@ jobs:
90
90
- name : prepare artifacts
91
91
shell : bash
92
92
run : |
93
- mkdir artifacts
93
+ mkdir -p artifacts/bin
94
94
cp -v build/shared/src/Debug/*.dll \
95
95
build/shared/examples/Debug/*.exe \
96
+ artifacts/bin
97
+ mkdir artifacts/include
98
+ cp -vR src/*.h artifacts/include
99
+ cp -v README.md \
100
+ COPYING \
101
+ AUTHORS \
102
+ ChangeLog \
103
+ doc \
96
104
artifacts/
105
+ - name : set env
106
+ run : echo "ADFLIB_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
107
+ - name : Test
108
+ run : |
109
+ echo $ADFLIB_TAG
110
+ echo ${{ env.ADFLIB_TAG }}
97
111
- uses : actions/upload-artifact@v3
98
112
with :
99
- name : adflib-windows
113
+ name : adflib-${{ env.ADFLIB_TAG }}- windows
100
114
path : |
101
115
artifacts/
102
116
# - name: test command-line utils
Original file line number Diff line number Diff line change @@ -28,13 +28,20 @@ jobs:
28
28
cut -d' ' -f 3 | cut -d':' -f 1 | xargs dpkg -L
29
29
- name : test installed command-line utils
30
30
run : ./examples/tests/test-all-examples.sh /usr/bin
31
- # https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
31
+ # https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
32
32
- name : copy artifacts
33
33
run :
34
34
mkdir -v artifacts ;
35
35
cp -v ../*.deb ../*.ddeb ../*.gz ../*.xz artifacts/
36
+ # https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions
37
+ - name : set env
38
+ run : echo "ADFLIB_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
39
+ - name : Test
40
+ run : |
41
+ echo $ADFLIB_TAG
42
+ echo ${{ env.ADFLIB_TAG }}
36
43
- uses : actions/upload-artifact@v3
37
44
with :
38
- name : ubuntu- deb
45
+ name : adflib-${{ env.ADFLIB_TAG }}- deb-ubuntu
39
46
path : |
40
47
artifacts/
You can’t perform that action at this time.
0 commit comments