Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
fbjorn committed Feb 8, 2024
1 parent c5d315a commit c932704
Showing 1 changed file with 31 additions and 8 deletions.
39 changes: 31 additions & 8 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@ name: Build and publish to PyPI

on:
push:
branches:
- ci/use-trusted-publisher-test
tags:
- "*"

jobs:
build_and_publish:
name: Build and publish
build:
name: Test and build
runs-on: ubuntu-latest
environment: PyPI
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- name: Checkout 🔁
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
Expand All @@ -37,5 +35,30 @@ jobs:
- name: Build the package 📦
run: poetry build

- name: Publish package to PyPI 🙌
uses: pypa/gh-action-pypi-publish@release/v1
- name: Publish build artifact
uses: actions/upload-artifact@v4
with:
name: package-dist
path: dist
publish:
name: Publish
needs: build
runs-on: ubuntu-latest
environment: PyPI
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: package-dist
path: dist

- name: LS
run: |
ls -la
ls -la dist
# - name: Publish package to PyPI 🙌
# uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit c932704

Please sign in to comment.