Skip to content

Commit

Permalink
Add release workflow (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe authored Jan 17, 2024
1 parent 1769316 commit 3b7f482
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: release
on:
push:
branches:
- main
pull_request:
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
release:
runs-on: ubuntu-latest
environment: ${{ github.ref == 'refs/heads/main' && 'release' || 'test' }}
steps:
- uses: actions/checkout@v4
- uses: swatinem/rust-cache@v2
- uses: homebrew/actions/setup-homebrew@master
- run: tools/setup.sh
- run: cargo install cargo-workspaces
- run: cargo workspaces publish -y --from-git
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
if: github.ref == 'refs/heads/main'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.cargo*
target

0 comments on commit 3b7f482

Please sign in to comment.