mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Restrict the release workflow to the sphinx-doc organisation
This commit is contained in:
parent
cc1b13ccbf
commit
a7976b6cbb
2
.github/workflows/create-release.yml
vendored
2
.github/workflows/create-release.yml
vendored
@ -14,6 +14,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: PyPI Release
|
name: PyPI Release
|
||||||
environment: release
|
environment: release
|
||||||
|
if: github.repository_owner == 'sphinx-doc'
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write # for PyPI trusted publishing
|
id-token: write # for PyPI trusted publishing
|
||||||
steps:
|
steps:
|
||||||
@ -72,6 +73,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: GitHub release
|
name: GitHub release
|
||||||
environment: release
|
environment: release
|
||||||
|
if: github.repository_owner == 'sphinx-doc'
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # for softprops/action-gh-release to create GitHub release
|
contents: write # for softprops/action-gh-release to create GitHub release
|
||||||
steps:
|
steps:
|
||||||
|
Loading…
Reference in New Issue
Block a user