Skip to content

Commit 625aa5e

Browse files
authored
Update deb-package-${{ github.run_id }} as the artifact name, ensuring it’s unique per workflow
1 parent 1b23855 commit 625aa5e

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

.github/workflows/deb-packaging.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
name: Build on ${{ matrix.distro }} ${{ matrix.arch }}
1111

12-
# Run steps on a matrix of 3 arch/distro combinations
12+
# Run steps on a matrix of arch/distro combinations
1313
strategy:
1414
matrix:
1515
include:
@@ -76,40 +76,30 @@ jobs:
7676

7777
steps:
7878
- uses: actions/[email protected]
79+
7980
- uses: allinurl/run-on-arch-action@master
8081
name: Build artifact
8182
id: build
8283
with:
8384
arch: ${{ matrix.arch }}
8485
distro: ${{ matrix.distro }}
85-
8686
# Not required, but speeds up builds
8787
githubToken: ${{ github.token }}
88-
8988
# Create an artifacts directory
9089
setup: |
9190
mkdir -p "${PWD}/artifacts"
92-
9391
# Mount the artifacts directory as /artifacts in the container
9492
dockerRunArgs: |
9593
--volume "${PWD}/artifacts:/artifacts"
96-
9794
# The shell to run commands with in the container
9895
shell: /bin/bash
99-
100-
# Install some dependencies in the container. This speeds up builds if
101-
# you are also using githubToken. Any dependencies installed here will
102-
# be part of the container image that gets cached, so subsequent
103-
# builds don't have to re-install them. The image layer is cached
104-
# publicly in your project's package repository, so it is vital that
105-
# no secrets are present in the container state or logs.
96+
# Install some dependencies in the container.
10697
install: |
10798
case "${{ matrix.distro }}" in
10899
ubuntu*|jessie|stretch|buster|bullseye|bookworm)
109100
apt-get update && apt-get install -y ca-certificates wget curl lsb-release && apt-get clean all
110101
;;
111102
esac
112-
113103
# Produce a binary artifact and place it in the mounted volume
114104
run: |
115105
ls -lath "/artifacts"
@@ -119,15 +109,13 @@ jobs:
119109
echo "Success!!"
120110
121111
- name: Show the artifact
122-
# Items placed in /artifacts in the container will be in
123-
# ${PWD}/artifacts on the host.
124112
run: |
125113
pwd
126114
ls -lath "${PWD}/artifacts"
127115
128116
- name: 'Upload deb package'
129117
uses: actions/upload-artifact@v4
130118
with:
131-
name: deb-package
119+
name: deb-package-${{ github.run_id }}
132120
path: 'artifacts/*.deb'
133121
retention-days: 1

0 commit comments

Comments
 (0)