Skip to content

ci: 馃帯 revert artifact moving #18

ci: 馃帯 revert artifact moving

ci: 馃帯 revert artifact moving #18

Workflow file for this run

name: Publish
on:
pull_request:
branches:
- main
types: [closed]
workflow_dispatch:
jobs:
build:
name: 馃П Build source distribution and wheels
uses: ./.github/workflows/wheels.yml
if: github.event.pull_request.merged == true && github.event.pull_request.head.ref == ${{ vars.RELEASE_PR_BRANCH || 'create-pull-request/patch' }}
publish:
name: 馃摝 Publish to GitHub Releases and PyPI
runs-on: ubuntu-latest
environment: release
if: github.event.pull_request.merged == true && github.event.pull_request.head.ref == ${{ vars.RELEASE_PR_BRANCH || 'create-pull-request/patch' }}
concurrency: publish
needs: [build]
permissions:
id-token: write
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: dist
merge-multiple: true
- name: List artifacts
run: ls -R dist/
- name: Publish to GitHub Releases
uses: python-semantic-release/upload-to-gh-release@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag: latest
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
verbose: true