-
-
Notifications
You must be signed in to change notification settings - Fork 49
58 lines (46 loc) · 1.41 KB
/
deploy.yml
File metadata and controls
58 lines (46 loc) · 1.41 KB
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
######################################
## Custom HTTP Archive GitHub action ##
######################################
#
# Deploys the website to Google App Engine (production) on every push to main.
# Requires a GCP service account key stored as the GCP_SA_KEY repository secret.
#
name: Deploy to Production
on:
push:
branches:
- main
jobs:
deploy:
name: Build and Deploy to App Engine
runs-on: ubuntu-latest
if: github.repository == 'HTTPArchive/httparchive.org'
steps:
- name: Checkout branch
uses: actions/checkout@v6
- name: Setup Node.js for use with actions
uses: actions/setup-node@v6
with:
node-version: '24'
- name: Set up Python 3.14
uses: actions/setup-python@v6
with:
python-version: '3.14'
- name: Install Node dependencies
run: npm install
- name: Install Python dependencies
run: pip install -r requirements.txt
- name: Build static assets
run: npm run build
- name: Update timestamps
run: npm run timestamps
- name: Generate scripts
run: npm run generate
- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v3
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v2
- name: Deploy to App Engine
run: echo "Y" | gcloud app deploy --project httparchive