Skip to content

Commit 994617d

Browse files
authored
Migrate circleci to gh actions (#702)
1 parent 6306c20 commit 994617d

File tree

7 files changed

+9960
-10133
lines changed

7 files changed

+9960
-10133
lines changed

.circleci/config.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

.github/workflows/website.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Deploy website
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
defaults:
12+
run:
13+
working-directory: ./website
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: 16
21+
cache: 'npm'
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Build docusaurus
27+
run: npx docusaurus-write-translations
28+
29+
- name: Setting whoaim
30+
run: |
31+
git config --global user.email "[email protected]"
32+
git config --global user.name "Website Deployment CI"
33+
echo "machine github.com login davesnx password ${{ secrets.GH_TOKEN }}" > ~/.netrc
34+
35+
- name: Deploy docusaurus
36+
run: GIT_USER="davesnx" USE_SSH=false npx docusaurus-publish

0 commit comments

Comments
 (0)