Skip to content

Commit

Permalink
Remove uploads for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Oct 6, 2024
1 parent 983635c commit 7c70346
Showing 1 changed file with 28 additions and 32 deletions.
60 changes: 28 additions & 32 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Create release

on:
push:
tags:
- "v*.*.*"
workflow_dispatch:

permissions:
contents: read
Expand All @@ -13,7 +10,6 @@ jobs:
publish-pypi:
runs-on: ubuntu-latest
name: PyPI Release
environment: release
permissions:
id-token: write # for PyPI trusted publishing
steps:
Expand Down Expand Up @@ -78,31 +74,31 @@ jobs:
python -m pypi_attestations verify dist/*.whl --identity https://github.com/${{ github.repository }}/.github/workflows/create-release.yml@${{ github.ref }}
python -m pypi_attestations verify dist/*.tar.gz --identity https://github.com/${{ github.repository }}/.github/workflows/create-release.yml@${{ github.ref }}
- name: Upload to PyPI
env:
TWINE_NON_INTERACTIVE: "true"
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: "${{ steps.mint-token.outputs.api-token }}"
run: |
twine upload dist/* --attestations
github-release:
runs-on: ubuntu-latest
name: GitHub release
environment: release
permissions:
contents: write # for softprops/action-gh-release to create GitHub release
steps:
- uses: actions/checkout@v4
- name: Get release version
id: get_version
uses: actions/github-script@v7
with:
script: core.setOutput('version', context.ref.replace("refs/tags/v", ""))

- name: Create GitHub release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
name: "Sphinx ${{ steps.get_version.outputs.version }}"
body: "Changelog: https://www.sphinx-doc.org/en/master/changes.html"
# - name: Upload to PyPI
# env:
# TWINE_NON_INTERACTIVE: "true"
# TWINE_USERNAME: "__token__"
# TWINE_PASSWORD: "${{ steps.mint-token.outputs.api-token }}"
# run: |
# twine upload dist/* --attestations
#
# github-release:
# runs-on: ubuntu-latest
# name: GitHub release
# environment: release
# permissions:
# contents: write # for softprops/action-gh-release to create GitHub release
# steps:
# - uses: actions/checkout@v4
# - name: Get release version
# id: get_version
# uses: actions/github-script@v7
# with:
# script: core.setOutput('version', context.ref.replace("refs/tags/v", ""))
#
# - name: Create GitHub release
# uses: softprops/action-gh-release@v2
# if: startsWith(github.ref, 'refs/tags/')
# with:
# name: "Sphinx ${{ steps.get_version.outputs.version }}"
# body: "Changelog: https://www.sphinx-doc.org/en/master/changes.html"

0 comments on commit 7c70346

Please sign in to comment.