Skip to content

Commit

Permalink
build: unify build & release
Browse files Browse the repository at this point in the history
  • Loading branch information
crisog committed Jul 13, 2024
1 parent 129224c commit bc3419b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 28 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,36 @@
name: Release
name: Rust Build and Release

on:
push:
branches: ["main"]
paths-ignore:
- "README.md"
pull_request:
branches: ["main"]
paths-ignore:
- "README.md"

env:
CARGO_TERM_COLOR: always

permissions:
pull-requests: write
contents: write

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

release-plz:
needs: build
name: Release-plz
runs-on: ubuntu-latest
steps:
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/rust.yml

This file was deleted.

0 comments on commit bc3419b

Please sign in to comment.