Tag
Hash :
b4547a01
Author :
Date :
2025-06-18T21:24:46
github: add actions workflow for pkgconf releases Ref: https://github.com/pkgconf/pkgconf/issues/404 Signed-off-by: Ariadne Conill <ariadne@ariadne.space>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
name: Generate and upload release tarballs
on:
push:
tags:
- 'pkgconf-*'
jobs:
publish:
runs-on: ubuntu-latest
container:
image: alpine:latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
repository: pkgconf/pkgconf
- name: Update system and add dependencies
run: |
apk update
apk add kyua atf build-base autoconf automake libtool xz gzip openssh-client
- name: Bootstrap autotools
run: |
sh autogen.sh
./configure
- name: Run tests and generate dist tarballs
run: |
make distcheck -j$(nproc)
- name: Upload dist tarballs to distfiles.ariadne.space
env:
DISTFILES_PRIVATE_KEY: ${{ secrets.DISTFILES_PRIVATE_KEY }}
DISTFILES_HOST_KEYS: ${{ secrets.DISTFILES_HOST_KEYS }}
run: |
mkdir -p $HOME/.ssh
# Ensure the private key is read-only so SSH doesn't reject it.
umask 277
(echo "$DISTFILES_PRIVATE_KEY" | base64 -d) > $HOME/.ssh/id_ed25519
umask 077
(echo "$DISTFILES_HOST_KEYS" | base64 -d) > $HOME/.ssh/known_hosts
# Upload the tarballs.
scp -i "$HOME/.ssh/id_ed25519" -o "UserKnownHostsFile=$HOME/.ssh/known_hosts" *.tar* kaniini@distfiles.ariadne.space:distfiles/pkgconf/
# Delete the key material.
rm -rf $HOME/.ssh