Skip to content

Commit d57193b

Browse files
Create Release Workflow
1 parent 8e7d6d2 commit d57193b

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Create Release
2+
3+
on:
4+
push:
5+
tags: ['*']
6+
workflow_dispatch:
7+
8+
jobs:
9+
create-release:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Create Release with Auto Changelog
18+
uses: softprops/action-gh-release@v1
19+
with:
20+
generate_release_notes: true # GitHub generates changelog automatically
21+
draft: true
22+
prerelease: false
23+
body: |
24+
## 📦 Usage as Crate
25+
26+
Add to your `Cargo.toml`:
27+
```toml
28+
neutralts = "${{ github.ref_name }}"
29+
```
30+
31+
Available on crates.io: https://crates.io/crates/neutralts
32+
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)