Skip to content

Commit

Permalink
Set up an autorelease pipeline
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
notgull committed Jan 28, 2024
1 parent 832064c commit eab85a8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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 }}
- run: |
cargo login ${{ secrets.CRATES_IO_API_TOKEN }}
cargo publish

0 comments on commit eab85a8

Please sign in to comment.