mirror of
https://github.com/flightlessmango/MangoHud.git
synced 2024-11-18 03:25:40 +00:00
984fe1bff3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
30 lines
874 B
YAML
30 lines
874 B
YAML
name: Build source tars
|
|
on:
|
|
release:
|
|
types: ["created"]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Run build-source.sh
|
|
run: |
|
|
set -x
|
|
sudo apt update
|
|
sudo apt install gcc g++ ninja-build python3-pip python3-setuptools python3-wheel pkg-config mesa-common-dev libx11-dev libxnvctrl-dev libdbus-1-dev glslang-tools
|
|
sudo pip3 install 'meson>=0.60' mako
|
|
./build-source.sh
|
|
assets=()
|
|
for asset in ./MangoHud-*-Source*.tar.*; do
|
|
assets+=("-a" "$asset")
|
|
done
|
|
tag_name="${GITHUB_REF##*/}"
|
|
hub release edit "${assets[@]}" -m "" "$tag_name"
|
|
#hub release create "${assets[@]}" -m "$tag_name" "$tag_name"
|
|
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|