2021-06-14 04:36:09 +03:00
|
|
|
name: Build Source Release
|
|
|
|
|
|
|
|
# Trigger whenever a release is created
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types:
|
|
|
|
- created
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
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
|
2023-04-21 23:27:47 +03:00
|
|
|
echo "tarball=$TARBALL" >> $GITHUB_OUTPUT
|
2021-06-14 04:36:09 +03:00
|
|
|
|
|
|
|
- name: upload tarball
|
|
|
|
uses: actions/upload-release-asset@v1
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
upload_url: ${{ github.event.release.upload_url }}
|
|
|
|
asset_path: ./${{ steps.archive.outputs.tarball }}
|
|
|
|
asset_name: ${{ steps.archive.outputs.tarball }}
|
|
|
|
asset_content_type: application/gzip
|