workflow for build-source.sh

pull/414/head
jackun 4 years ago
parent 0ce22ddc15
commit ce7de16ce2
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -0,0 +1,27 @@
name: Build source tars
on:
release:
types: ["published"]
push:
tags: ["v*"]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run build-source.sh
run: |
set -x
./build-source.sh
assets=()
for asset in ./MangoHud-*-Source*.tar.gz; do
assets+=("-a" "$asset")
done
tag_name="${GITHUB_REF##*/}"
hub release create "${assets[@]}" -m "$tag_name" "$tag_name"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading…
Cancel
Save