forked from acl-org/acl-anthology
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1.01 KB
/
publish.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
# Publishes the build to our current mirror, aclanthology.org
name: publish-aclanthology
on:
push:
branches:
- master
jobs:
publish-aclanthology:
runs-on: ubuntu-20.04
steps:
- name: install hugo
run: wget https://github.com/gohugoio/hugo/releases/download/v0.58.3/hugo_extended_0.58.3_Linux-64bit.deb && sudo dpkg -i hugo_extended*.deb
- name: update
run: sudo apt-get update
- name: install other deps
run: sudo apt-get install -y jing bibutils openssh-client rsync libyaml-dev libpython3.8-dev
- name: dump secret key
env:
SSH_KEY: ${{ secrets.PUBLISH_SSH_KEY }}
run: |
mkdir -p $HOME/.ssh/
echo "$SSH_KEY" > $HOME/.ssh/id_rsa
chmod 600 $HOME/.ssh/id_rsa
- uses: actions/checkout@v1
- name: build
env:
ANTHOLOGY_PREFIX: https://aclanthology.org
run: |
make ANTHOLOGY_PREFIX=${ANTHOLOGY_PREFIX} check site
- name: publish
run: |
make ANTHOLOGY_PREFIX=${ANTHOLOGY_PREFIX} upload