You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
1.1 KiB

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-is-python3
- name: Build
working-directory: ${{github.workspace}}
run: tools/make_src_dist.py && mv build-src-dist/devilutionx-*.tar.xz devilutionx-src.tar.xz
- name: Upload-Package
if: ${{ !env.ACT }}
uses: actions/upload-artifact@v2
with:
name: devilutionx-src.tar.xz
path: devilutionx-src.tar.xz
- name: Update Release
if: startsWith(github.ref, 'refs/tags/') && ${{ !env.ACT }}
uses: ncipollo/release-action@v1
with:
artifacts: "devilutionx-src.tar.xz"
allowUpdates: true
omitBody: true
omitName: true
omitPrereleaseDuringUpdate: true
token: ${{ secrets.GITHUB_TOKEN }}