FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
client_python/.github/workflows/github-pages.yaml at master · prometheus/client_python · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
prometheus
/
client_python
Public
Notifications
You must be signed in to change notification settings
Fork
873
Star
4.4k
Code
Issues
105
Pull requests
43
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
client_python
/
.github
/
workflows
/
github-pages.yaml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
83 lines (76 loc) · 2.43 KB
Breadcrumbs
client_python
/
.github
/
workflows
/
github-pages.yaml
Copy path
File metadata and controls
83 lines (76 loc) · 2.43 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
name
:
Deploy Documentation to Github Pages
on
:
push
:
branches
:
-
master
#
Allows you to run this workflow manually from the Actions tab
workflow_dispatch
:
#
Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions
:
contents
:
read
#
Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
#
However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency
:
group
:
"
pages
"
cancel-in-progress
:
false
#
Default to bash
defaults
:
run
:
shell
:
bash
jobs
:
#
Build job
build
:
runs-on
:
ubuntu-latest
env
:
HUGO_VERSION
:
0.145.0
permissions
:
pages
:
write
id-token
:
write
steps
:
-
name
:
Install Hugo CLI
run
:
|
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
#
- name: Install Dart Sass
#
run: sudo snap install dart-sass
-
name
:
Checkout
uses
:
actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
#
v6.0.1
with
:
submodules
:
recursive
fetch-depth
:
0
-
name
:
Setup Pages
id
:
pages
uses
:
actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b
#
v5.0.0
-
name
:
Install Node.js dependencies
run
:
"
[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true
"
working-directory
:
./docs
-
name
:
Build with Hugo
env
:
#
For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT
:
production
HUGO_ENV
:
production
run
:
|
hugo \
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
working-directory
:
./docs
-
name
:
Upload artifact
uses
:
actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b
#
v4.0.0
with
:
path
:
./docs/public
#
Deployment job
deploy
:
environment
:
name
:
github-pages
url
:
${{ steps.deployment.outputs.page_url }}
runs-on
:
ubuntu-latest
needs
:
build
permissions
:
pages
:
write
id-token
:
write
actions
:
read
steps
:
-
name
:
Deploy to GitHub Pages
id
:
deployment
uses
:
actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e
#
v4.0.5
Back
|
FazBrowse Home
|
New Git URL