-
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.
- Loading branch information
1 parent
3df54b9
commit 4881d20
Showing
1 changed file
with
36 additions
and
36 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 |
---|---|---|
|
@@ -14,30 +14,30 @@ on: | |
# - 'development' | ||
|
||
jobs: | ||
build: | ||
name: Build distribution 📦 | ||
runs-on: ubuntu-latest | ||
# build: | ||
# name: Build distribution 📦 | ||
# runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
- name: Install pypa/build | ||
run: >- | ||
python3 -m | ||
pip install | ||
build | ||
--user | ||
- name: Build a binary wheel and a source tarball | ||
run: python3 -m build | ||
- name: Store the distribution packages | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
# - name: Set up Python | ||
# uses: actions/setup-python@v4 | ||
# with: | ||
# python-version: "3.11" | ||
# - name: Install pypa/build | ||
# run: >- | ||
# python3 -m | ||
# pip install | ||
# build | ||
# --user | ||
# - name: Build a binary wheel and a source tarball | ||
# run: python3 -m build | ||
# - name: Store the distribution packages | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: python-package-distributions | ||
# path: dist/ | ||
|
||
release: | ||
name: Publish Python 🐍 distribution 📦 to TestPyPI | ||
|
@@ -48,28 +48,28 @@ jobs: | |
id-token: write | ||
contents: read | ||
|
||
environment: | ||
name: testpypi | ||
url: https://test.pypi.org/p/python-project-cli | ||
# environment: | ||
# name: testpypi | ||
# url: https://test.pypi.org/p/python-project-cli | ||
|
||
steps: | ||
- name: Download all the dists | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
# - name: Download all the dists | ||
# uses: actions/download-artifact@v3 | ||
# 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: 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 | ||
|