Skip to content

Commit

Permalink
🔧 chore(release.yml): change permissions from read to write to allow …
Browse files Browse the repository at this point in the history
…workflow to modify repository contents

✨ feat(release.yml): add changelog to release workflow to automatically generate release notes
🔧 chore(release.yml): remove unnecessary build targets to speed up build process
✨ feat: add CHANGELOG.md to keep track of all changes in the project
  • Loading branch information
wenxuanjun committed May 4, 2024
1 parent 1e2e725 commit 0d4c66f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Release

permissions:
contents: read
contents: write

on:
push:
Expand All @@ -15,25 +15,18 @@ jobs:
- uses: actions/checkout@v4
- uses: taiki-e/create-gh-release-action@v1
with:
changelog: CHANGELOG.md
token: ${{ secrets.GITHUB_TOKEN }}

upload-assets:
needs: create-release
strategy:
matrix:
include:
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
- target: aarch64-apple-darwin
os: macos-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: universal-apple-darwin
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## [0.1.0] - 2024-05-04

- Initial release
- 在 Windows 和 Linux 上通过测试

[0.1.0]: https://github.com/ShanghaitechGeekPie/net-loginer/releases/tag/v0.1.0

0 comments on commit 0d4c66f

Please sign in to comment.