-
Notifications
You must be signed in to change notification settings - Fork 37
41 lines (39 loc) · 1.22 KB
/
ci.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
name: deploy
on:
push:
jobs:
deploy:
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v1
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 12
- name: yarn install
run: yarn install --frozen-lockfile
working-directory: ./website
- name: install solc
run: |
# Install solc v0.4.24 manually onto Linux
mkdir -p "$HOME/bin"
curl -s -f -L "https://github.com/ethereum/solidity/releases/download/v0.4.24/solc-static-linux" -o "$HOME/bin/solc"
chmod u+x "$HOME/bin/solc"
echo "Installed solc-v0.4.24"
export PATH=$HOME/bin:$PATH
solc --version
- name: build
run: |
export PATH=$HOME/bin:$PATH
solc --version
yarn run build
working-directory: ./website
- name: deploy
run: |
git config --global user.email "[email protected]"
git config --global user.name "Autobots, roll out!"
echo "machine github.com login arabot-1 password ${{ secrets.GIT_TOKEN }}" > $HOME/.netrc
GIT_USER="arabot-1" npx docusaurus-publish
working-directory: ./website
env:
CI: true