Skip to content

Commit

Permalink
ci: Add release pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: John Nunley <[email protected]>
  • Loading branch information
notgull committed Jun 12, 2024
1 parent 004cf67 commit 15e6bac
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 15e6bac

Please sign in to comment.