-
-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (51 loc) · 1.41 KB
/
deploy.yml
File metadata and controls
61 lines (51 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
59
60
61
---
name: Deploy
on:
push:
branches:
- main
# Scheduled tasks only run on the main branch.
schedule:
- cron: '0 10 * * *' # Daily at 10AM UTC.
workflow_dispatch:
# Cancel active CI runs for a PR before starting another run
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash # https://github.com/beeware/briefcase/pull/912
env:
FORCE_COLOR: "1"
jobs:
deploy:
permissions:
contents: write
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Clone code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Install build dependencies
run: |
python -m pip install -r requirements.txt
- name: Fetch latest packages data and build the website
run: |
make generate
- name: Collect the built files
run: |
mkdir build/
cp index.html build/
cp wheel.css build/
cp *.svg build/
cp results.json build/
- name: Deploy the built files
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build # The folder the action should deploy.
git-config-name: github-actions[bot]
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com