forked from WohnungNDS/IM_Data
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (48 loc) · 1.56 KB
/
deploy-to-production.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
# ****************************************************************************
# NOTES:
#
# This is an example of a production deployment that uses GitHub Pages along
# with a second "production" GitHub organisation. If you prefer to implement
# your own workflow, or do not need production deployments, then you should
# delete this file.
#
# In order for this to work, you must replace PRODUCTION_ORGANISATION below
# with the name of your production GitHub organisation, under REPOSITORY_NAME.
# You must also replace PRODUCTION_REPOSITORY below with the name of your
# production data repository.
#
# For example, if your production organisation is "my-stats-org", and your
# production data repository is "sdg-data", then use:
#
# REPOSITORY_NAME: my-stats-org/sdg-data
#
# ****************************************************************************
name: Deploy to production
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r scripts/requirements.txt
- name: Build data
run: |
python scripts/build_data.py
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
REPOSITORY_NAME: MT-production/IM_production_data
ACCESS_TOKEN: ${{ secrets.token }}
BRANCH: gh-pages
FOLDER: _site
CLEAN: true