forked from 1EdTech/openbadges-specification
-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (42 loc) · 1.09 KB
/
context.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
name: Publish the JSON-LD context file
on:
push:
branches:
- develop
paths:
- 'ob_v3p0/context.json'
pull_request:
branches:
- develop
paths:
- 'ob_v3p0/context.json'
jobs:
publish:
name: Publish to GH pages
runs-on: ubuntu-latest
steps:
- name: Checkout develop
uses: actions/checkout@v2
with:
ref: develop
- name: Upload context.json from develop
uses: actions/[email protected]
with:
name: context.json
path: ob_v3p0/context.json
- name: Checkout gh-pages
uses: actions/checkout@v2
with:
ref: gh-pages
- name: Download context.json to gh_pages
uses: actions/[email protected]
with:
name: context.json
path: docs
- name: Commit the changes
run: |
git add docs/*
git config --local user.name "GitHub Actions"
git config --local user.email "[email protected]"
git commit --allow-empty -m "Automated build"
git push origin