Skip to content

Commit

Permalink
Updated gh-workflow-tailcall generated ci file
Browse files Browse the repository at this point in the history
  • Loading branch information
mehul-m-prajapati committed Dec 5, 2024
1 parent aa4ecd3 commit 6141b1e
Showing 1 changed file with 32 additions and 3 deletions.
35 changes: 32 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name: Build and Test
env:
RUSTFLAGS: -Dwarnings
on:
pull_request_target:
pull_request:
types:
- opened
- synchronize
Expand All @@ -33,6 +33,8 @@ jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand All @@ -48,7 +50,9 @@ jobs:
- name: Cargo Clippy
run: cargo +nightly clippy --all-features --workspace -- -D warnings
release:
needs: build
needs:
- build
if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }}
name: Release
runs-on: ubuntu-latest
permissions:
Expand All @@ -62,4 +66,29 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4
- name: Release Plz
uses: MarcoIeni/[email protected]
uses: release-plz/[email protected]
with:
command: release
release-pr:
needs:
- build
if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }}
name: Release PR
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
packages: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Release Plz
uses: release-plz/[email protected]
with:
command: release-pr
concurrency:
group: release-${{github.ref}}
cancel-in-progress: false

0 comments on commit 6141b1e

Please sign in to comment.