Skip to content

Commit

Permalink
ci: Optimise the CI process
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermentormate committed Apr 9, 2024
1 parent 65f6958 commit 1817176
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:

permissions:
id-token: write
contents: read
contents: write

# environment:
# name: testpypi
Expand All @@ -58,33 +58,33 @@ jobs:
with:
name: python-package-distributions
path: dist/
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0
# github_token: ${{ secrets.ACCESS_TOKEN }}
# token: ${{ secrets.PAT }}

# - name: Python Semantic Release
# id: release
# uses: python-semantic-release/[email protected]
# with:
# github_token: ${{ secrets.ACCESS_TOKEN }}
# # <other options here>

- name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
- uses: actions/checkout@v4
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
fetch-depth: 0
github_token: ${{ secrets.ACCESS_TOKEN }}
token: ${{ secrets.PAT }}

- name: Publish package to GitHub Release
uses: python-semantic-release/upload-to-gh-release@main
if: ${{ steps.release.outputs.released }} == 'true'
- name: Python Semantic Release
id: release
uses: python-semantic-release/[email protected]
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
token: ${{ secrets.PAT }}
tag: ${{ steps.release.outputs.tag }}
# <other options here>

# - name: Publish package distributions to TestPyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# user: __token__
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository-url: https://test.pypi.org/legacy/

# - name: Publish package to GitHub Release
# uses: python-semantic-release/upload-to-gh-release@main
# if: ${{ steps.release.outputs.released }} == 'true'
# with:
# github_token: ${{ secrets.ACCESS_TOKEN }}
# token: ${{ secrets.PAT }}
# tag: ${{ steps.release.outputs.tag }}
# steps:
# - name: Download all the dists
# uses: actions/download-artifact@v3
Expand Down

0 comments on commit 1817176

Please sign in to comment.