-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (37 loc) · 1.09 KB
/
archive-pycontw.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
name: Deploy PyConTW sites to branch
on:
workflow_dispatch:
inputs:
re-scrape:
description: 'Re-scrape all archived sites'
required: true
jobs:
deploy-pycontw-sites:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: '${{ secrets.ACCESS_TOKEN }}'
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install -U pip pipenv
pipenv install
- name: Crawl Past PyConTW Websites
run: |
pipenv run python3 main.py -y 2016 &
pipenv run python3 main.py -y 2017 &
pipenv run python3 main.py -y 2018 &
pipenv run python3 main.py -y 2019 &
pipenv run python3 main.py -y 2020 &
wait
mkdir build; mv 2016/ 2017/ 2018/ 2019/ 2020/ build/
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build