mirror of
https://github.com/zhaojh329/rttys.git
synced 2026-02-27 09:53:21 +08:00
46
.github/workflows/release.yml
vendored
46
.github/workflows/release.yml
vendored
@@ -9,6 +9,8 @@ jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- id: get-version
|
||||
uses: battila7/get-version-action@v2
|
||||
|
||||
@@ -23,3 +25,47 @@ jobs:
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user