Skip to content

Commit

Permalink
chore: build release before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
n3oney committed Mar 17, 2023
1 parent e108f9b commit 93992e8
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Release new version
on:
push:
tags:
- '*'
- "*"

permissions:
contents: write

Expand All @@ -16,14 +16,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: katyo/publish-crates@v2
name: Publish on crates.io
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- uses: softprops/action-gh-release@v1
name: Create GitHub Release
with:
files: |
target/release/shadower
LICENSE
- uses: actions/checkout@v3
- name: Build release
run: "cargo build --release"
- uses: katyo/publish-crates@v2
name: Publish on crates.io
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- uses: softprops/action-gh-release@v1
name: Create GitHub Release
with:
files: |
target/release/shadower
LICENSE

0 comments on commit 93992e8

Please sign in to comment.