mirror of
https://github.com/cedar2025/hysteria.git
synced 2025-07-05 10:49:51 +00:00
![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [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/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
name: "Build release"
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- app/v*.*.*
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
|
|
|
steps:
|
|
- name: Check out
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: "1.21"
|
|
|
|
- name: Setup Python # This is for the build script
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- name: Run build script
|
|
run: |
|
|
export HY_APP_PLATFORMS=$(sed 's/\r$//' platforms.txt | awk '!/^#/ && !/^$/' | paste -sd ",")
|
|
python hyperbole.py build -r
|
|
|
|
- name: Generate hashes
|
|
run: |
|
|
for file in build/*; do
|
|
sha256sum $file >> build/hashes.txt
|
|
done
|
|
|
|
- name: Upload
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: build/*
|
|
|
|
- name: Publish to API
|
|
run: |
|
|
export HY_API_POST_KEY=${{ secrets.HY2_API_POST_KEY }}
|
|
pip install requests
|
|
python hyperbole.py publish
|