Skip to content

Commit

Permalink
Merge pull request #30 from YushiOMOTE/add-release-workflow
Browse files Browse the repository at this point in the history
Add release workflow
  • Loading branch information
YushiOMOTE authored Jul 14, 2024
2 parents 335e627 + b224be5 commit 3adf051
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/release-drafter-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
exclude-labels:
- 'skip-changelog'
version-resolver:
minor:
labels:
- 'breaking-change'
default: patch
categories:
- title: '⚠️ Breaking changes'
label: 'breaking-change'
- title: '🚀 Enhancements'
label: 'enhancement'
- title: '🐛 Bug Fixes'
label: 'bug'
template: |
$CHANGES
Thanks again to $CONTRIBUTORS! 🎉
17 changes: 17 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on:
push:
tags:
- '*'
workflow_dispatch:

name: Publish

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: cargo package
- run: cargo publish --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
16 changes: 16 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Release Drafter

on:
push:
branches:
- master

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
with:
config-name: release-drafter-config.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3adf051

Please sign in to comment.