github actions: append commit hash to artifacts archive name (#6450)
This commit is contained in:
parent
5171965045
commit
fa47b40bb7
8
.github/workflows/packages.yml
vendored
8
.github/workflows/packages.yml
vendored
@ -93,7 +93,7 @@ jobs:
|
|||||||
test -f ./deleted_packages.txt && mv ./deleted_packages.txt ./debs/
|
test -f ./deleted_packages.txt && mv ./deleted_packages.txt ./debs/
|
||||||
# Files containing certain symbols (e.g. ":") will cause failure in actions/upload-artifact.
|
# Files containing certain symbols (e.g. ":") will cause failure in actions/upload-artifact.
|
||||||
# Archiving *.deb files in a tarball to avoid issues with uploading.
|
# Archiving *.deb files in a tarball to avoid issues with uploading.
|
||||||
tar cf artifacts/debs-${{ matrix.target_arch }}.tar debs
|
tar cf artifacts/debs-${{ matrix.target_arch }}-${{ github.sha }}.tar debs
|
||||||
- name: Checksums for built *.deb files
|
- name: Checksums for built *.deb files
|
||||||
run: |
|
run: |
|
||||||
find debs -type f -name "*.deb" -exec sha256sum "{}" \; | sort -k2
|
find debs -type f -name "*.deb" -exec sha256sum "{}" \; | sort -k2
|
||||||
@ -121,7 +121,7 @@ jobs:
|
|||||||
BINTRAY_GPG_SUBJECT: termux
|
BINTRAY_GPG_SUBJECT: termux
|
||||||
BINTRAY_GPG_PASSPHRASE: ${{ secrets.BINTRAY_GPG_PASSWORD }}
|
BINTRAY_GPG_PASSPHRASE: ${{ secrets.BINTRAY_GPG_PASSWORD }}
|
||||||
run: |
|
run: |
|
||||||
for i in debs-*.tar; do
|
for i in debs-*-${{ github.sha }}.tar; do
|
||||||
tar xf $i
|
tar xf $i
|
||||||
done
|
done
|
||||||
# Purging debfiles of removed packages.
|
# Purging debfiles of removed packages.
|
||||||
@ -149,8 +149,8 @@ jobs:
|
|||||||
# Zip the deb archives to only do one transfer to the repo.
|
# Zip the deb archives to only do one transfer to the repo.
|
||||||
# This makes it easier to parse it, we can run one update job
|
# This makes it easier to parse it, we can run one update job
|
||||||
# instead of one for each arch on the server.
|
# instead of one for each arch on the server.
|
||||||
archive="termux-packages-$(tr -dc A-Za-z0-9 </dev/urandom | head -c 6).zip"
|
archive="termux-packages-${{ github.sha }}.zip"
|
||||||
zip $archive debs-aarch64.tar debs-arm.tar debs-i686.tar debs-x86_64.tar
|
zip $archive debs-*-${{ github.sha }}.tar
|
||||||
sftp -P ${{ secrets.PORT }} ${{ secrets.USER }}@grimler.se <<EOF
|
sftp -P ${{ secrets.PORT }} ${{ secrets.USER }}@grimler.se <<EOF
|
||||||
put $archive /debs/
|
put $archive /debs/
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user