-
Notifications
You must be signed in to change notification settings - Fork 7
35 lines (33 loc) · 1 KB
/
deploy.yml
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
# Deploy gutenberg to fly.io
name: Fly deploy
on:
workflow_dispatch:
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Enable corepack
shell: bash
run: corepack enable
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Checkout course material
shell: bash
run: |
pip install --upgrade pip setuptools wheel
pip install -r scripts/python_requirements.txt
python scripts/pull_material.py
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
--build-arg DATABASE_URL=${{secrets.DATABASE_URL}}
--build-arg NEXT_PUBLIC_PLAUSIBLE_DOMAIN=${{secrets.NEXT_PUBLIC_PLAUSIBLE_DOMAIN}}
--wait-timeout 240
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}