-
-
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.
internal(CI): Added a GitHub release action to create a new tag/relea…
…se per plugin Removed the option to build publish/release all plugins at once
- Loading branch information
1 parent
97cedb1
commit a763300
Showing
5 changed files
with
66 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Create a GitHub plugin release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
plugin_to_publish: | ||
type: choice | ||
description: 'Select plugin to add as GitHub release' | ||
options: | ||
- 'provisioner_examples_plugin' | ||
- 'provisioner_installers_plugin' | ||
- 'provisioner_single_board_plugin' | ||
required: true | ||
|
||
env: | ||
PYPI_API_TOKEN: ${{ secrets.PROVISIONER_PYPI_API_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GH_ACTION_PLUGIN_TO_PUBLISH: ${{ github.event.inputs.plugin_to_publish }} | ||
POETRY_VERSION: "1.4.1" | ||
|
||
jobs: | ||
publish_to_pypi: | ||
name: Publish provisioner plugins to PyPi | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: [ '3.10' ] | ||
|
||
steps: | ||
- name: Checkout ZachiNachshon/provisioner | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: 'ZachiNachshon/provisioner' | ||
token: ${{ secrets.PROVISIONER_REPO_ACCESS_TOKEN }} | ||
|
||
- name: Checkout ZachiNachshon/provisioner-plugins | ||
uses: actions/checkout@v3 | ||
with: | ||
path: './plugins' | ||
|
||
- name: Setup Environment | ||
uses: ./.github/actions/setup | ||
env: | ||
PYTHON_VERSION: ${{ matrix.python }} | ||
POETRY_VERSION: ${{ env.POETRY_VERSION }} | ||
|
||
# Tests should be run when the PR created after publish to PyPi was merged | ||
|
||
- name: Create a GitHub release | ||
uses: ./.github/actions/release | ||
with: | ||
publishable: ${{ github.event.inputs.plugin_to_publish }} | ||
is_plugin: true | ||
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }} |
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