Skip to content

Commit

Permalink
update: release ci
Browse files Browse the repository at this point in the history
  • Loading branch information
zhifengle committed Oct 10, 2024
1 parent 4ad847a commit 9fb46b7
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
target: [x86_64-pc-windows-gnu, x86_64-unknown-linux-musl]
target: [x86_64-unknown-linux-musl]
steps:
- uses: actions/checkout@master
- name: Compile
Expand Down
26 changes: 23 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,35 @@
name: Publish Release
on:
release:
types: [created]
push:
tags:
- 'v*'

permissions:
contents: write
packages: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body_path: ./CHANGELOG.md
build:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [x86_64-pc-windows-gnu, x86_64-unknown-linux-musl]
# windows build error
# target: [x86_64-pc-windows-gnu, x86_64-unknown-linux-musl]
target: [x86_64-unknown-linux-musl]
steps:
- uses: actions/checkout@master
- name: Compile and release
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# v0.1.0

## 变化

- 避免cookie被锁定时,需要管理员权限

0 comments on commit 9fb46b7

Please sign in to comment.