From bfa7f851632cffe60657ab7b36483d1dacab7c17 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Wed, 24 Nov 2021 01:33:11 +0000 Subject: [PATCH] Add a GitHub Workflow to build the source tarball Triggered on release and can also be triggered manually. --- .github/workflows/src_dist_release.yml | 31 ++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/src_dist_release.yml diff --git a/.github/workflows/src_dist_release.yml b/.github/workflows/src_dist_release.yml new file mode 100644 index 000000000..f5e1c4dc9 --- /dev/null +++ b/.github/workflows/src_dist_release.yml @@ -0,0 +1,31 @@ +name: Build source tarball + +on: + release: + types: [created] + workflow_dispatch: + +jobs: + make_src_dist: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Create Build Environment + run: > + sudo apt update && + sudo apt install -y cmake curl libsdl2-dev libsdl2-image-dev libfmt-dev libsodium-dev libbz2-dev git smpq gettext python + + - name: Build + working-directory: ${{github.workspace}} + run: tools/make_src_dist.py + + - name: Upload-Package + if: ${{ !env.ACT }} + uses: actions/upload-artifact@v2 + with: + name: devilutionx-src.tar.xz + path: build-src-dist/devilutionx-*.tar.xz