FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-gitlab/.github/workflows/release.yml at main · uda/python-gitlab · GitHub
uda
python-gitlab
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-gitlab
/
.github
/
workflows
/
release.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
35 lines (31 loc) · 1.13 KB
Breadcrumbs
python-gitlab
/
.github
/
workflows
/
release.yml
Copy path
File metadata and controls
35 lines (31 loc) · 1.13 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name
:
Release
on
:
schedule
:
-
cron
:
'
0 0 28 * *
'
#
Monthly auto-release
workflow_dispatch
:
#
Manual trigger for quick fixes
jobs
:
release
:
if
:
github.repository == 'python-gitlab/python-gitlab'
runs-on
:
ubuntu-latest
permissions
:
id-token
:
write
environment
:
pypi.org
steps
:
-
uses
:
actions/checkout@v3.5.3
with
:
fetch-depth
:
0
token
:
${{ secrets.RELEASE_GITHUB_TOKEN }}
-
name
:
mint API token
id
:
mint-token
run
:
|
resp=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=pypi")
oidc_token=$(jq '.value' <<< "${resp}")
resp=$(curl -X POST https://pypi.org/_/oidc/github/mint-token -d "{\"token\":${oidc_token}}")
api_token=$(jq '.token' <<< "${resp}" | tr -d '"')
echo "::add-mask::${api_token}"
echo "api-token=${api_token}" >> "${GITHUB_OUTPUT}"
-
name
:
Python Semantic Release
uses
:
relekang/python-semantic-release@v7.34.6
with
:
github_token
:
${{ secrets.RELEASE_GITHUB_TOKEN }}
pypi_token
:
${{ steps.mint-token.outputs.api-token }}
Back
|
FazBrowse Home
|
New Git URL