FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
PyMySQL/.github/workflows/publish.yml at main · PyMySQL/PyMySQL · GitHub
PyMySQL
PyMySQL
Repository navigation
Code
Issues
12
(12)
Pull requests
5
(5)
Discussions
Actions
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
PyMySQL
/
.github
/
workflows
/
publish.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
96 lines (82 loc) · 2.58 KB
Breadcrumbs
PyMySQL
/
.github
/
workflows
/
publish.yml
Copy path
File metadata and controls
96 lines (82 loc) · 2.58 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#
This file is copied from https://github.com/psf/requests/blob/8f6cda9969f4a98c45ea2922f6bcbefc02256202/.github/workflows/publish.yml
name
:
Publish to PyPI
on
:
push
:
tags
:
-
"
v*
"
workflow_dispatch
:
inputs
:
test-pypi-only
:
description
:
"
Publish to Test PyPI only
"
type
:
boolean
default
:
true
permissions
:
contents
:
read
jobs
:
build
:
name
:
"
Build dists
"
runs-on
:
"
ubuntu-slim
"
outputs
:
artifact-id
:
${{ steps.upload-artifact.outputs.artifact-id }}
steps
:
-
name
:
"
Checkout repository
"
uses
:
"
actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
"
#
v7.0.1
with
:
persist-credentials
:
false
-
name
:
"
Setup Python
"
uses
:
"
actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
"
#
v7.0.0
with
:
python-version
:
"
3.x
"
-
name
:
"
Install dependencies
"
run
:
python -m pip install build==1.5.0
-
name
:
"
Build dists
"
run
:
|
SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) \
python -m build
-
name
:
"
Upload dists
"
uses
:
"
actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
"
#
v7.0.2
id
:
upload-artifact
with
:
name
:
"
dist
"
path
:
"
dist/
"
if-no-files-found
:
error
retention-days
:
5
publish
:
name
:
"
Publish
"
if
:
startsWith(github.ref, 'refs/tags/')
needs
:
["build"]
permissions
:
id-token
:
write
runs-on
:
"
ubuntu-latest
"
environment
:
name
:
"
publish
"
steps
:
-
name
:
"
Download dists
"
uses
:
"
actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333
"
#
v8.0.2
with
:
artifact-ids
:
${{ needs.build.outputs.artifact-id }}
path
:
"
dist/
"
-
name
:
"
Publish dists to PyPI
"
uses
:
"
pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33
"
#
v1.14.2
with
:
attestations
:
true
publish-test-pypi
:
name
:
"
Publish to Test PyPI
"
if
:
github.event_name == 'workflow_dispatch'
needs
:
["build"]
permissions
:
id-token
:
write
runs-on
:
"
ubuntu-latest
"
environment
:
name
:
"
testpypi
"
steps
:
-
name
:
"
Download dists
"
uses
:
"
actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333
"
#
v8.0.2
with
:
artifact-ids
:
${{ needs.build.outputs.artifact-id }}
path
:
"
dist/
"
-
name
:
"
Publish dists to Test PyPI
"
uses
:
"
pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33
"
#
v1.14.2
with
:
repository-url
:
https://test.pypi.org/legacy/
attestations
:
true
Back
|
FazBrowse Home
|
New Git URL