Skip to content

Commit

Permalink
脚本自动push
Browse files Browse the repository at this point in the history
  • Loading branch information
xulei131401 committed Mar 21, 2024
1 parent bb6347c commit 5db22ff
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@ permissions:
packages: write

jobs:
build:
runs-on: ${{ matrix.os }}
release:
runs-on: ubuntu-latest

strategy:
matrix:
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm64
goos: windows

steps:
- name: Check out Git repository
Expand Down Expand Up @@ -52,13 +58,16 @@ jobs:
cd ./app
pnpm i
- name: Run Command
run: |
pwd
ls -alh
upx --version
which pnpm
pnpm --version
which go
go version
env
- name: 移动ui文件到go源码中
run: make mv-ui

- name: Release Go Binary
uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: 1.20
project_path: "./server"
binary_name: "sdwu"
extra_files: LICENSE README.md

0 comments on commit 5db22ff

Please sign in to comment.