Skip to content

Commit

Permalink
chore(ci): Add workflow to create github release
Browse files Browse the repository at this point in the history
  • Loading branch information
AnActualEmerald committed Feb 1, 2024
1 parent 4df3c3a commit 3c9067e
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish to crates.io
name: Publish release

on:
push:
Expand All @@ -11,13 +11,30 @@ env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_TOKEN }}

jobs:
build:

github-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Generate changelog
id: changelog
uses: orhun/git-cliff-action@v2
with:
config: cliff.toml
args: --verbose -l -s all
env:
OUTPUT: CHANGES.md
- name: Publish release
uses: svenstaro/upload-release-action@v2
with:
file: LICENSE
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
body: ${{ needs.changelog.outputs.content }}
crates-io:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Run tests
run: cargo test --verbose
# - name: Run tests
# run: cargo test --verbose
- name: Publish
run: cargo publish

0 comments on commit 3c9067e

Please sign in to comment.