Skip to content

Commit

Permalink
fix artifact tarring again
Browse files Browse the repository at this point in the history
  • Loading branch information
swlynch99 committed Jul 15, 2023
1 parent 37410ef commit cbafcfe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ jobs:
- name: copy debs
shell: bash
run: |
set -x
shopt -s nullglob
mkdir -p ${{ steps.vars.outputs.distro }}_${{ steps.vars.outputs.release}}
mkdir -p target/debian
cp ../*.deb ../*.ddeb target/debian/
cd target/debian
Expand Down Expand Up @@ -139,6 +140,7 @@ jobs:
- name: upload package
run: |
set -x
for artifact in target/debian/**/*.tar.xz; do
name="$(basename "$artifact")"
distro="$( echo "$name" | cut -d . -f 1 | cut -d _ -f 1)"
Expand All @@ -154,7 +156,7 @@ jobs:
for package in target/artifacts/*; do
echo gcloud artifacts apt upload "$release" --source "$package"
done
rm -rf target/artifacts
echo "::endgroup::"
done

0 comments on commit cbafcfe

Please sign in to comment.