Skip to content

Commit

Permalink
Update Action
Browse files Browse the repository at this point in the history
  • Loading branch information
Maroon502 committed Jan 27, 2024
1 parent c4da1e0 commit 50e57b4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 44 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/release.yml → .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,46 @@
name: Release-Publish
name: Release-pr

permissions:
pull-requests: write
contents: write

on:
workflow_dispatch:
repository_dispatch:
types: [publish]
push:
branches:
- master

jobs:
release-publish:
name: Release-Publish
release-pr:
name: Release-plz
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: cargo update
run: cargo update
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- 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
33 changes: 0 additions & 33 deletions .github/workflows/release-pr.yml

This file was deleted.

0 comments on commit 50e57b4

Please sign in to comment.