Skip to content

Commit

Permalink
ci: add release-plz
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisGorbachev committed Jul 21, 2024
1 parent 167b142 commit 5b4759d
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release-plz

permissions:
pull-requests: write
contents: write

on:
push:
branches:
- main

jobs:
release-plz:
name: Release-plz
runs-on: ubuntu-latest
steps:
-
name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
-
name: Run release-plz
uses: MarcoIeni/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Options:
-c, --copy-configs-from <COPY_CONFIGS_FROM>
Source directory for configuration files
--extra-configs <EXTRA_CONFIGS>
Extra config file paths (relative to `source` directory)
Extra config file paths (relative to resolved `dir`), separated by comma
--repo-exists-cmd <REPO_EXISTS_CMD>
Shell command to check if repo exists (supports substitutions - see help below) [default: "gh repo view --json nameWithOwner {{name}} 2>/dev/null"]
--repo-create-cmd <REPO_CREATE_CMD>
Expand Down
71 changes: 71 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub struct CreateRustGithubRepo {
#[arg(long, short, help = "Source directory for configuration files", value_parser = value_parser!(PathBuf))]
copy_configs_from: Option<PathBuf>,

#[arg(long, help = "Extra config file paths (relative to `source` directory)", value_delimiter = ',')]
#[arg(long, help = "Extra config file paths (relative to resolved `dir`), separated by comma", value_delimiter = ',')]
extra_configs: Vec<String>,

#[arg(long, help = "Shell command to check if repo exists (supports substitutions - see help below)", default_value = "gh repo view --json nameWithOwner {{name}} 2>/dev/null")]
Expand Down

0 comments on commit 5b4759d

Please sign in to comment.