Skip to content

Commit

Permalink
Merge pull request #23 from emberist/feat/release-ci
Browse files Browse the repository at this point in the history
feat: add release ci file
  • Loading branch information
emberist authored May 21, 2024
2 parents cb879dd + 5251a5a commit c3af87c
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

name: release

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.GH_TOKEN }}
release-type: rust

- name: Checkout repository
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v3

- name: Install Rust
if: ${{ steps.release.outputs.release_created }}
uses: dtolnay/rust-toolchain@stable

- name: Build
run: |
cargo build --release
- name: Upload Release Artifact
if: ${{ steps.release.outputs.release_created }}
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: gh release upload ${{ steps.release.outputs.tag_name }} ./target/release/mrburns

0 comments on commit c3af87c

Please sign in to comment.