forked from ddm999/gt7info
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (46 loc) · 1.47 KB
/
build-and-deploy-to-github-pages.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Build and deploy site
# Controls when the workflow will run
on:
push:
branches: [ web-new ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Install python3
uses: actions/[email protected]
with:
cache: 'pip'
- name: Install requirements
run: pip install -r requirements.txt
- name: Build site
run: python3 build.py
- name: Build lottery cars page
run: python3 lotterycars.py
- name: Build stock perf page
run: python3 stockperf.py
- name: Deploy to Github Pages
uses: JamesIves/[email protected]
with:
BRANCH: gh-pages
FOLDER: build
ssh-key: ${{ secrets.DEPLOY_KEY }}
git-config-name: Github Actions
git-config-email: [email protected]
# - name: Add CNAME for gtinfo
# run: python3 cname-make.py
#
# - name: Pushes to another repository
# uses: cpina/github-action-push-to-another-repository@main
# env:
# API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
# with:
# source-directory: 'build'
# destination-github-username: 'ddm999'
# destination-repository-name: 'gtinfo'
# user-name: 'ddm999'
# user-email: [email protected]
# target-branch: gh-pages