-
Notifications
You must be signed in to change notification settings - Fork 70
42 lines (41 loc) · 1007 Bytes
/
build.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
36
37
38
39
40
41
42
on:
workflow_dispatch:
push:
schedule:
- cron: '0 * */1 * *'
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
submodules: true
- name: Build
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
sudo apt-get update
sudo apt-get install python3-venv cssmin
mkdir env
python3 -m venv env
source env/bin/activate
python -m pip install -r requirements.txt
./build.sh
cssmin > dist/theme.css.min < dist/theme.css
mv dist/theme.css.min dist/theme.css
echo "xemu.app" > dist/CNAME
- uses: actions/[email protected]
with:
path: dist
Deploy:
needs: [Build]
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/[email protected]