Skip to content

switch that other url back #8

switch that other url back

switch that other url back #8

Workflow file for this run

name: Publish
on:
push:
branches:
- develop
jobs:
# on-failure:
# runs-on: ubuntu-latest
# if: ${{ github.event.workflow_run.conclusion == 'failure' }}
# steps:
# - run: echo 'The triggering workflow failed'
package:
name: Build package
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install hatch
run: |
python -m pip install hatch
- name: Build dist
run: |
hatch build
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
# pypi-publish:
# name: Upload release to PyPI
# # if: ${{ github.event.workflow_run.conclusion == 'success' }}
# runs-on: ubuntu-latest
# environment:
# name: release
# url: https://pypi.org/p/aardvark
# permissions:
# id-token: write
# steps:
# - name: Download all the dists
# uses: actions/download-artifact@v4
# with:
# name: python-package-distributions
# path: dist/
# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
pypi-test-publish:
name: Upload release to TestPyPI
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
environment:
name: release
url: https://test.pypi.org/p/aardvark
permissions:
id-token: write
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/