-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: refactor nightly to use release workflow
renamed release-icons to publish-icons workflow
- Loading branch information
1 parent
8d39728
commit 4056891
Showing
4 changed files
with
93 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
name: "Manual Release" | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
preid: | ||
description: Which prerelease id should be used? This is only needed when a version is "prepatch", "preminor", "premajor", or "prerelease". | ||
type: string | ||
default: '' | ||
|
||
ref: | ||
type: string | ||
description: The branch name, tag, or SHA to be checked out. This can also be left blank. | ||
default: '' | ||
|
||
tag: | ||
type: 'string' | ||
required: true | ||
description: Which npm tag should this be published to | ||
|
||
version: | ||
type: string | ||
description: Which version should be published? | ||
|
||
workflow_dispatch: | ||
inputs: | ||
preid: | ||
type: choice | ||
description: Which prerelease id should be used? This is only needed when a version is "prepatch", "preminor", "premajor", or "prerelease". | ||
options: | ||
- '' | ||
- alpha | ||
- beta | ||
- rc | ||
- next | ||
|
||
ref: | ||
type: string | ||
description: The branch name, tag, or SHA to be checked out. This can also be left blank. | ||
default: '' | ||
|
||
tag: | ||
type: choice | ||
required: true | ||
description: Which npm tag should this be published to | ||
options: | ||
- latest | ||
- next | ||
- dev | ||
|
||
version: | ||
type: choice | ||
description: Which version should be published? | ||
options: | ||
- '' | ||
- patch | ||
- minor | ||
- major | ||
- prepatch | ||
- preminor | ||
- premajor | ||
- prerelease | ||
|
||
jobs: | ||
export-icons: | ||
uses: ./.github/workflows/icon-export.yml | ||
with: | ||
preid: ${{ inputs.preid || '' }} | ||
ref: ${{ inputs.ref || 'next' }} | ||
tag: ${{ inputs.tag || 'nightly' }} | ||
version: ${{ inputs.version || '' }} | ||
secrets: inherit | ||
|
||
publish-icons: | ||
uses: ./.github/workflows/publish-icons.yml | ||
needs: export-icons | ||
if: ${{ needs.export-icons.outputs.nextVersionType != '' }} | ||
with: | ||
preid: ${{ inputs.preid}} | ||
ref: ${{ inputs.ref }} | ||
tag: ${{ inputs.tag }} | ||
version: ${{inputs.version }} | ||
secrets: inherit |