Skip to content

Commit 3cdae0b

Browse files
author
chelonian-bot
committed
chore: replace Release Drafter configuration with new changelog setup and automate publishing to crates.io
1 parent 909b125 commit 3cdae0b

File tree

6 files changed

+52
-132
lines changed

6 files changed

+52
-132
lines changed

.github/release-drafter.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- ignore-for-release
5+
authors:
6+
- octocat
7+
categories:
8+
- title: Breaking Changes 🛠
9+
labels:
10+
- Semver-Major
11+
- breaking-change
12+
- title: Exciting New Features 🎉
13+
labels:
14+
- Semver-Minor
15+
- enhancement
16+
- title: Other Changes
17+
labels:
18+
- "*"

.github/workflows/auto-publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish to crates.io
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
publish:
10+
name: Publish to crates.io
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
17+
- name: Install Rust using rustup
18+
run: |
19+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
20+
source $HOME/.cargo/env
21+
rustup default stable
22+
23+
- name: Authenticate with crates.io
24+
env:
25+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
26+
run: echo "${CARGO_REGISTRY_TOKEN}" | cargo login
27+
28+
- name: Build the project
29+
run: cargo build --release
30+
31+
- name: Publish to crates.io
32+
env:
33+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
34+
run: cargo publish

.github/workflows/publish-manual.yaml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/release-drafter.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/release2publish.yaml

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)