mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-25 02:49:52 +03:00
37 lines
805 B
YAML
37 lines
805 B
YAML
name: Build Source Release
|
|
|
|
# Trigger whenever a release is created
|
|
on:
|
|
release:
|
|
types:
|
|
- created
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
|
|
- 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
|
|
|
|
- name: Upload tarball
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
files: ./${{ steps.archive.outputs.tarball }}
|
|
name: ${{ steps.archive.outputs.tarball }}
|