-
Notifications
You must be signed in to change notification settings - Fork 93
35 lines (35 loc) · 895 Bytes
/
deploy.yml
File metadata and controls
35 lines (35 loc) · 895 Bytes
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
name: Deploy
on:
push:
branches:
- main
schedule:
- cron: '30 0 * * *'
jobs:
deploy:
name: "Deploy website"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1.0.0
- uses: dcodeIO/setup-node-nvm@master
with:
node-version: 16
- name: Build
run: |
npm ci --no-audit
node scripts/update-data
node scripts/update-svgs
npm run build
node scripts/update-sdk
- name: Deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd dist
echo www.assemblyscript.org > CNAME
git init -b pages
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git add -A
git commit -m 'deploy'
git push -f https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git pages:gh-pages