Skip to content

Commit 3e22cc9

Browse files
authored
Merge pull request #50 from linyows/workflow
Update upload-artifact to v4
2 parents 26d11cc + 070ff6e commit 3e22cc9

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,13 @@ jobs:
3030
run: |
3131
make build install
3232
make deb
33+
- name: Set Distribution and Name
34+
run: |
35+
echo "DISTRIBUTION=$(echo '${{ matrix.container }}' | sed 's/:/-/g')" >> $GITHUB_ENV
3336
- name: Upload artifacts
34-
uses: actions/upload-artifact@v3
37+
uses: actions/upload-artifact@v4
3538
with:
36-
name: octopass-${{ github.job }}
39+
name: octopass-${{ env.DISTRIBUTION }}
3740
path: builds/**
3841
debian:
3942
name: Build on ${{matrix.container }}
@@ -56,10 +59,13 @@ jobs:
5659
run: |
5760
make build install
5861
make deb
62+
- name: Set Distribution and Name
63+
run: |
64+
echo "DISTRIBUTION=$(echo '${{ matrix.container }}' | sed 's/:/-/g')" >> $GITHUB_ENV
5965
- name: Upload artifacts
60-
uses: actions/upload-artifact@v3
66+
uses: actions/upload-artifact@v4
6167
with:
62-
name: octopass-${{ github.job }}
68+
name: octopass-${{ env.DISTRIBUTION }}
6369
path: builds/**
6470
# centos:
6571
# name: Build on ${{matrix.container }}

0 commit comments

Comments
 (0)