mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 19:55:23 +00:00
03a3b923a0
Initial support to automate release flow. Now after git tag of specific commit GitHub Actions will create a draft entry of release (named by tag) with source code package on it.
31 lines
751 B
YAML
31 lines
751 B
YAML
name: Release source tarball
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Generate git hash and tarball
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install -y ninja-build cmake g++ libsdl2-dev zlib1g-dev
|
|
cmake --preset linux
|
|
cmake --build --preset linux -t get_git_hash
|
|
cmake --build --preset linux -t package_source
|
|
|
|
- name: Release
|
|
uses: ncipollo/release-action@v1.14.0
|
|
with:
|
|
artifacts: "builds/linux/Descent3-*-Source.tar.xz"
|
|
draft: true
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|