Skip to content

Commit

Permalink
chore: Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Maroon502 committed Oct 27, 2023
1 parent 5910f5b commit f1501df
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 77 deletions.
50 changes: 0 additions & 50 deletions .github/workflows/publish.yml.bak

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: Release-plz
name: Release-pr

permissions:
pull-requests: write
contents: write

on:
workflow_dispatch:
# repository_dispatch:
# types: [publish]
repository_dispatch:
types: [publish]

jobs:
release-plz:
name: Release-plz
release-pr:
name: Release-pr
runs-on: ubuntu-latest
environment: Cargo
steps:
Expand All @@ -29,3 +29,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
with:
command: release-pr
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release-Publish

permissions:
pull-requests: write
contents: write

on:
push:
branches:
- master

jobs:
release-publish:
name: Release-Publish
runs-on: ubuntu-latest
environment: Cargo
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: initial submodule
run:
git submodule update --init
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: MarcoIeni/release-plz-action@v0.5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
with:
command: release
22 changes: 0 additions & 22 deletions .github/workflows/release.yml.bak

This file was deleted.

0 comments on commit f1501df

Please sign in to comment.