2022-05-27 21:12:47 +08:00
|
|
|
name: Generate Source Tarball
|
|
|
|
|
|
|
|
# Trigger whenever a release is created
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types:
|
|
|
|
- created
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
2024-06-16 20:02:26 +08:00
|
|
|
- uses: actions/checkout@v4
|
2022-05-27 21:12:47 +08:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
|
|
|
|
- name: archive
|
|
|
|
id: archive
|
|
|
|
run: |
|
|
|
|
sudo apt install -y gperf
|
|
|
|
rm -rf .git
|
|
|
|
autoreconf -i
|
|
|
|
VERSION=$(cat VERSION)
|
|
|
|
PKGNAME="tinyproxy-$VERSION"
|
|
|
|
./configure
|
|
|
|
make dist
|
2024-06-16 20:02:26 +08:00
|
|
|
echo "tarball_xz=${PKGNAME}.tar.xz" >> "$GITHUB_OUTPUT"
|
|
|
|
echo "tarball_gz=${PKGNAME}.tar.gz" >> "$GITHUB_OUTPUT"
|
|
|
|
echo "tarball_bz2=${PKGNAME}.tar.bz2" >> "$GITHUB_OUTPUT"
|
2022-05-27 21:12:47 +08:00
|
|
|
|
2024-06-16 20:02:26 +08:00
|
|
|
- name: upload tarballs
|
|
|
|
uses: softprops/action-gh-release@v2
|
2022-05-27 21:12:47 +08:00
|
|
|
with:
|
2024-06-16 20:02:26 +08:00
|
|
|
files: |
|
|
|
|
${{ steps.archive.outputs.tarball_xz }}
|
|
|
|
${{ steps.archive.outputs.tarball_gz }}
|
|
|
|
${{ steps.archive.outputs.tarball_bz2 }}
|
2022-05-27 21:12:47 +08:00
|
|
|
|