2021-06-14 04:36:09 +03:00
|
|
|
name: Build Source Release
|
|
|
|
|
|
|
|
# Trigger whenever a release is created
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types:
|
|
|
|
- created
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2024-06-15 18:31:25 +03:00
|
|
|
name: Build
|
2021-06-14 04:36:09 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
2024-08-31 08:58:49 +03:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
2021-06-14 04:36:09 +03:00
|
|
|
|
2024-08-31 08:58:49 +03:00
|
|
|
- name: Archive
|
|
|
|
id: archive
|
|
|
|
run: |
|
|
|
|
VERSION=${{ github.event.release.tag_name }}
|
|
|
|
PKGNAME="SoftEtherVPN-$VERSION"
|
|
|
|
mkdir -p /tmp/$PKGNAME
|
|
|
|
mv * /tmp/$PKGNAME
|
|
|
|
mv /tmp/$PKGNAME .
|
|
|
|
TARBALL=$PKGNAME.tar.xz
|
|
|
|
tar cJf $TARBALL $PKGNAME
|
|
|
|
echo "tarball=$TARBALL" >> $GITHUB_OUTPUT
|
2021-06-14 04:36:09 +03:00
|
|
|
|
2024-08-31 08:58:49 +03:00
|
|
|
- name: Upload tarball
|
|
|
|
uses: softprops/action-gh-release@v2
|
|
|
|
with:
|
|
|
|
files: ./${{ steps.archive.outputs.tarball }}
|
|
|
|
name: ${{ steps.archive.outputs.tarball }}
|