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 3df54b9 commit 4881d20
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4881d20

Please sign in to comment.