Skip to content

Commit

Permalink
Add in prompt for itch-project name. (#184)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Hohenheim <[email protected]>
Co-authored-by: Ben Frankel <[email protected]>
  • Loading branch information
3 people committed Aug 4, 2024
1 parent 394392d commit e02e74b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ env:
# The itch.io page to upload to, in the format: `user-name/project-name`.
# Comment this out to disable.
{%- if itch_username != "" %}
{%- if itch_project != "" %}
ITCH_TARGET: {{itch_username}}/{{itch_project}}
{%- else %}
ITCH_TARGET: {{itch_username}}/{{project-name}}
{%- endif %}
{%- else %}
# ITCH_TARGET: your-itch-username/{{project-name}}
{%- endif %}
Expand Down
3 changes: 3 additions & 0 deletions cargo-generate.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ include = ["Cargo.toml", "Cargo.lock", ".github/workflows/*", "*.rs"]
prompt = "Enter your itch.io username. Leave blank to disable itch.io upload."
type = "string"
default = ""

[conditional.'itch_username != ""'.placeholders]
itch_project = { type = "string", prompt = "Enter the project name used in the itch.io URL. Leave blank to use this crate's `project-name`.", default = "" }

0 comments on commit e02e74b

Please sign in to comment.