ci: Set up an autorelease pipeline
This commit adds a pipeline that automatically creates a GitHub Release and a crates.io release when a tag is pushed. Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
parent
34d52bd350
commit
e435fc99bc
1 changed files with 24 additions and 0 deletions
24
.github/workflows/release.yml
vendored
Normal file
24
.github/workflows/release.yml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
name: Release
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- v[0-9]+.*
|
||||
|
||||
jobs:
|
||||
create-release:
|
||||
if: github.repository_owner == 'rust-windowing'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: taiki-e/create-gh-release-action@v1
|
||||
with:
|
||||
changelog: CHANGELOG.md
|
||||
branch: master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||
- name: Publish to crates.io
|
||||
run: cargo publish --token ${{ secrets.CRATES_IO_API_TOKEN }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue