forked from carpentries-i18n/i18n
-
Notifications
You must be signed in to change notification settings - Fork 14
65 lines (52 loc) · 2.08 KB
/
render-webpages.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
57
58
59
60
61
62
63
64
65
name: Render-Webpages
# Run this workflow every time a new commit pushed to your repository (includes merged PR)
on: push
jobs:
# Set the job key. The key is displayed as the job name
# when a job name is not provided
build-webpages:
# Name the Job
name: Update lessons
# Set the type of machine to run on
runs-on: ubuntu-latest
strategy:
matrix:
lesson-repo: [shell-novice, git-novice, r-novice-gapminder, python-novice-inflammation]
##lesson-repo: [shell-novice, git-novice, r-novice-gapminder, r-novice-inflammation, python-novice-gapminder, python-novice-inflammation, sql-novice-survey, make-novice]
python-version: [3.7]
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: install shell dependencies
run: sudo apt-get install -y git
- name: update python package manager
run: pip install --upgrade pip
- name: install python dependencies
run: pip install python-dateutil
- name: where am i
run: pwd
- name: list files
run: ls
- name: list parent files
run: ls ..
- name: configure git access
run: export GITHUB_TOKEN=${{ secrets.ACTIONS_TOKEN }}
- name: configure git account
run: git config --global user.email "[email protected]"
- name: configure git user
run: git config --global user.name "TomKellyGenetics"
- name: configure git settings
run: git config --global pull.rebase false
- name: who am i
run: git config -l | cat
- name: Build ${{ matrix.lesson-repo }} lesson
run: bash wrapper.sh --repo ${{ matrix.lesson-repo }} --locale ja --account swcarpentry-ja --webpages
env:
DEFAULT_BRANCH: ja
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }}