-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new ci/cd pipeline connecting package release to api deploy - attempt 2
- Loading branch information
Showing
7 changed files
with
40 additions
and
10 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
2 changes: 1 addition & 1 deletion
2
.github/workflows/package-code-check.yml → .github/workflows/1_1-package-code-check.yml
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Package Check | ||
name: Package Code Check | ||
|
||
on: | ||
workflow_call: | ||
|
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,15 @@ | ||
# Publish Python Package to Pypi | ||
|
||
name: PreRelease on PyPi | ||
|
||
on: | ||
release: | ||
types: [prereleased] | ||
|
||
jobs: | ||
|
||
publish: | ||
uses: ./.github/workflows/2_1-package-publish-on-pypi.yml | ||
with: | ||
tag_name: ${{ github.event.release.tag_name }} | ||
secrets: inherit |
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,15 @@ | ||
# Publish Python Package to Pypi | ||
|
||
name: Package Release | ||
|
||
on: | ||
release: | ||
types: [released] | ||
|
||
jobs: | ||
|
||
publish: | ||
uses: ./.github/workflows/2_1-package-publish-on-pypi.yml | ||
with: | ||
tag_name: ${{ github.event.release.tag_name }} | ||
secrets: inherit |
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 |
---|---|---|
|
@@ -3,26 +3,28 @@ | |
name: Publish on PyPi | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_call: | ||
inputs: | ||
tag_name: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
|
||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Check release | ||
run: | | ||
echo ${{ github.event.release.tag_name }} | ||
echo ${{ inputs.tag_name }} | ||
- name: Fetch Github Release Asset | ||
uses: dsaltares/[email protected] | ||
with: | ||
regex: true | ||
file: "complexoperations.*" | ||
target: "dist/" | ||
version: tags/${{ github.event.release.tag_name }} | ||
version: tags/${{ inputs.tag_name }} | ||
token: ${{ secrets.MY_TOKEN }} | ||
- name: Publish to PyPi | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
2 changes: 0 additions & 2 deletions
2
.github/workflows/package-test-publish.yml → ...flows/2_2-package-publish-on-testpypi.yml
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# Publish Python Package to Test Pypi | ||
|
||
name: Publish on TestPypi | ||
|
||
on: workflow_dispatch | ||
|
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