Skip to content

Commit

Permalink
Merge pull request #173 from lsst-sqre/tickets/DM-39837
Browse files Browse the repository at this point in the history
DM-39837: Try DM-39837 version of pypi-publish action
  • Loading branch information
jonathansick committed Jul 7, 2023
2 parents 5227e84 + 24f4a49 commit 227c483
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ name: CI
- 'renovate/**'
- 'tickets/**'
- 'u/**'
tags:
- '*'
pull_request: {}
release:
types: [published]

jobs:
lint:
Expand Down Expand Up @@ -100,10 +100,31 @@ jobs:
if: >
github.event_name != 'pull_request' || startsWith(github.head_ref, 'tickets/')
test-package:
name: Test PyPI package build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # full history for setuptools_scm

- name: Build and publish
uses: lsst-sqre/build-and-publish-to-pypi@tickets/DM-39837
with:
python-version: "3.11"
upload: "false"

pypi:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
needs: [lint, test, docs]
needs: [lint, test, docs, test-package]
environment:
name: pypi
url: https://pypi.org/p/documenteer
permissions:
id-token: write
if: github.event_name == 'release' && github.event.action == 'published'

steps:
- uses: actions/checkout@v3
Expand All @@ -121,8 +142,6 @@ jobs:
npm run build
- name: Build and publish
uses: lsst-sqre/build-and-publish-to-pypi@v1
uses: lsst-sqre/build-and-publish-to-pypi@tickets/DM-39837
with:
pypi-token: ${{ secrets.PYPI_SQRE_ADMIN }}
python-version: '3.11'
upload: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}

0 comments on commit 227c483

Please sign in to comment.