FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
website/.github/workflows/deploy-production.yaml at main · python-poetry/website · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
python-poetry
/
website
Public
Notifications
You must be signed in to change notification settings
Fork
21
Star
39
Code
Issues
9
Pull requests
3
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
website
/
.github
/
workflows
/
deploy-production.yaml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
84 lines (72 loc) · 2.5 KB
Breadcrumbs
website
/
.github
/
workflows
/
deploy-production.yaml
Copy path
File metadata and controls
84 lines (72 loc) · 2.5 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
name
:
"
Deploy Production
"
on
:
schedule
:
-
cron
:
"
0 0 * * *
"
push
:
branches
:
-
main
workflow_dispatch
:
{}
permissions
:
{}
jobs
:
deploy-production
:
name
:
Build & Deploy
runs-on
:
ubuntu-latest
timeout-minutes
:
15
environment
:
name
:
Production
url
:
${{ steps.vercel-action.outputs.preview-url }}
permissions
:
pull-requests
:
write
steps
:
-
name
:
Checkout
uses
:
actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
#
v6.0.2
with
:
persist-credentials
:
false
-
name
:
Set up Python
uses
:
actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
#
v6.2.0
with
:
python-version
:
"
3.10
"
-
name
:
Setup Node
uses
:
actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f
#
v6.3.0
with
:
node-version
:
"
22
"
-
name
:
Build Assets
run
:
npm ci && npm run prod
#
Ruby must be set up after running "npm ci" because installing hugo-bin via npm
#
removes the vendor directory that is created by "bundle install"
#
https://github.com/fenneclab/hugo-bin/blob/a5500e4f622f46886947d3438243bd97cfe6c04c/lib/install.js#L28-L30
-
name
:
Setup Ruby
uses
:
ruby/setup-ruby@7372622e62b60b3cb750dcd2b9e32c247ffec26a
#
v1.302.0
with
:
ruby-version
:
"
3.2
"
bundler-cache
:
true
-
name
:
Fetch Documentation
run
:
|
python -m pip install poetry
poetry install --no-root --only main
poetry run python bin/website build
-
name
:
Build
run
:
npx hugo --minify --logLevel info
-
name
:
Build search index
continue-on-error
:
true
env
:
ALGOLIA_APP_ID
:
${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_ADMIN_KEY
:
${{ secrets.ALGOLIA_ADMIN_KEY }}
ALGOLIA_INDEX_NAME
:
${{ secrets.ALGOLIA_INDEX_NAME }}
ALGOLIA_INDEX_FILE
:
"
algolia.json
"
run
:
|
bundle exec bin/build_index.rb
npm run algolia
-
name
:
Deploy
uses
:
amondnet/vercel-action@c71810f8732de6b8656e41155e63b6303ca3e4bf
#
v42.1.0
id
:
vercel-action
with
:
vercel-version
:
50.44.0
vercel-token
:
${{ secrets.VERCEL_TOKEN }}
github-token
:
${{ secrets.GITHUB_TOKEN }}
vercel-org-id
:
${{ secrets.VERCEL_ORG_ID }}
vercel-project-id
:
${{ secrets.VERCEL_PROJECT_ID }}
scope
:
python-poetry
github-comment
:
false
vercel-args
:
"
--prod
"
working-directory
:
public
Back
|
FazBrowse Home
|
New Git URL