-
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.
- Loading branch information
Showing
3 changed files
with
124 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,50 @@ | ||
name: Build | ||
|
||
on: | ||
workflow_run: | ||
workflows: [CI] | ||
types: | ||
- completed | ||
branches: [main] | ||
|
||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
concurrency: build | ||
permissions: | ||
id-token: write | ||
contents: write | ||
if: github.event.workflow_run.conclusion == 'success' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Python Semantic Release | ||
uses: python-semantic-release/python-semantic-release@master | ||
with: | ||
github_token: ${{ secrets.PAT_TOKEN }} | ||
|
||
|
||
- name: Store the distribution packages | ||
uses: actions/upload-artifact@v3 | ||
if: steps.release.outputs.released == 'true' | ||
|
||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
|
||
# - name: Publish package distributions to PyPI | ||
# uses: pypa/gh-action-pypi-publish@release/v1 | ||
# if: steps.release.outputs.released == 'true' | ||
## with: | ||
## user: ${{ secrets.PYPI_USER }} | ||
## password: ${{ secrets.PYPI_PASSWORD }} | ||
#name: Build | ||
# | ||
#on: | ||
# workflow_run: | ||
# workflows: [CI] | ||
# types: | ||
# - completed | ||
# branches: [main] | ||
# | ||
# | ||
# | ||
#jobs: | ||
# build: | ||
# runs-on: ubuntu-latest | ||
# concurrency: build | ||
# permissions: | ||
# id-token: write | ||
# contents: write | ||
# if: github.event.workflow_run.conclusion == 'success' | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# with: | ||
# fetch-depth: 0 | ||
# | ||
# - name: Publish package distributions to GitHub Releases | ||
# uses: python-semantic-release/upload-to-gh-release@main | ||
# - name: Python Semantic Release | ||
# uses: python-semantic-release/python-semantic-release@master | ||
# with: | ||
# github_token: ${{ secrets.PAT_TOKEN }} | ||
# | ||
# | ||
# - name: Store the distribution packages | ||
# uses: actions/upload-artifact@v3 | ||
# if: steps.release.outputs.released == 'true' | ||
# | ||
# with: | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# name: python-package-distributions | ||
# path: dist/ | ||
# | ||
## - name: Publish package distributions to PyPI | ||
## uses: pypa/gh-action-pypi-publish@release/v1 | ||
## if: steps.release.outputs.released == 'true' | ||
### with: | ||
### user: ${{ secrets.PYPI_USER }} | ||
### password: ${{ secrets.PYPI_PASSWORD }} | ||
## | ||
## - name: Publish package distributions to GitHub Releases | ||
## uses: python-semantic-release/upload-to-gh-release@main | ||
## if: steps.release.outputs.released == 'true' | ||
## with: | ||
## github_token: ${{ secrets.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
# workflow_run: | ||
# workflows: [ Build ] | ||
# types: | ||
# - completed | ||
#name: Release | ||
# | ||
#on: | ||
# push: | ||
# tags: | ||
# - "*" | ||
|
||
permissions: | ||
id-token: write | ||
contents: write | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download all the dists | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
|
||
# - name: Publish package distributions to PyPI | ||
# uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
||
# - name: Publish package distributions to GitHub Releases | ||
# uses: python-semantic-release/upload-to-gh-release@main | ||
## workflow_run: | ||
## workflows: [ Build ] | ||
## types: | ||
## - completed | ||
## tags: | ||
## - "*" | ||
# | ||
#permissions: | ||
# id-token: write | ||
# contents: write | ||
# | ||
#jobs: | ||
# publish: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Download all the dists | ||
# uses: actions/download-artifact@v3 | ||
# with: | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# name: python-package-distributions | ||
# path: dist/ | ||
# | ||
# # - name: Publish package distributions to PyPI | ||
# # uses: pypa/gh-action-pypi-publish@release/v1 | ||
# | ||
## - name: Publish package distributions to GitHub Releases | ||
## uses: python-semantic-release/upload-to-gh-release@main | ||
## with: | ||
## github_token: ${{ secrets.GITHUB_TOKEN }} |