Skip to content

Commit

Permalink
Release workflow (#55)
Browse files Browse the repository at this point in the history
- **Refactor CI configuration**
- **Add release workflow**
  • Loading branch information
raviqqe authored Dec 7, 2024
1 parent d67b1d3 commit 423b008
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
File renamed without changes.
11 changes: 0 additions & 11 deletions .github/mergify.yml

This file was deleted.

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'

0 comments on commit 423b008

Please sign in to comment.