mirror of
https://github.com/gl-inet/glkvm-cloud.git
synced 2026-09-12 05:48:57 +00:00
cf2f50eae8
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
72 lines
1.9 KiB
YAML
72 lines
1.9 KiB
YAML
name: release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- id: get-version
|
|
uses: battila7/get-version-action@v2
|
|
|
|
- uses: docker/login-action@v3
|
|
with:
|
|
username: zhaojh329
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- uses: docker/build-push-action@v6
|
|
with:
|
|
push: true
|
|
tags: |
|
|
zhaojh329/rttys:${{ steps.get-version.outputs.version-without-v }}
|
|
zhaojh329/rttys:latest
|
|
|
|
build:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- id: get-version
|
|
uses: battila7/get-version-action@v2
|
|
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '1.24.4'
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
|
|
- name: Build ui
|
|
run: |
|
|
cd ui
|
|
npm install
|
|
npm run build
|
|
cd ..
|
|
|
|
- name: Build rttys release
|
|
run: |
|
|
sudo apt-get install -y ruby ruby-dev rubygems build-essential
|
|
sudo gem install --no-document fpm
|
|
./build-deb.sh amd64
|
|
./build-deb.sh arm64
|
|
COMPRESS=1 ./build.sh linux amd64
|
|
COMPRESS=1 ./build.sh linux arm64
|
|
COMPRESS=1 ./build.sh windows amd64
|
|
|
|
- name: Upload Release Asset
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: |
|
|
rttys_${{ steps.get-version.outputs.version-without-v }}_amd64.deb
|
|
rttys_${{ steps.get-version.outputs.version-without-v }}_arm64.deb
|
|
rttys-${{ steps.get-version.outputs.version-without-v }}-linux-amd64.tar.bz2
|
|
rttys-${{ steps.get-version.outputs.version-without-v }}-linux-arm64.tar.bz2
|
|
rttys-${{ steps.get-version.outputs.version-without-v }}-windows-amd64.tar.bz2
|
|
draft: true
|