forked from e1miran/Now-Playing-Serato
-
Notifications
You must be signed in to change notification settings - Fork 12
43 lines (35 loc) · 991 Bytes
/
ghpages-main.yaml
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
#
#
# yamllint disable rule:line-length
---
name: website
# execute this workflow automatically when a we push to master
on: # yamllint disable-line rule:truthy
push:
branches: [main]
permissions:
deployments: write
contents: write
jobs:
build_docs_job:
runs-on: ubuntu-latest
container: debian:stable-slim
steps:
- name: Prereqs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
apt-get update
apt-get install -y git python3-pip
git clone "https://token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" .
chown -R $(id -u):$(id -g) "${PWD}"
shell: bash
# - name: check
# run: |
# pip3 install .
- name: Execute script to build our documentation and update pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_WRITE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: "./build-website.sh"
shell: bash