-
Notifications
You must be signed in to change notification settings - Fork 27
41 lines (40 loc) · 1.22 KB
/
deploy.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:
branches:
- master
tags:
- "!*"
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: LLK/scratch-gui
ref: develop
- run: npm install
- uses: actions/checkout@v2
with:
path: ./tm2scratch
- uses: actions/checkout@v2
with:
repository: yokobond/scratch-microbit-more
path: ./microbitMore
- run: sh ./microbitMore/install-stretch3.sh
- run: sh ./tm2scratch/install.sh
- run: sh ./tm2scratch/add_ga_tracking_code.sh
- run: npm run build
- run: cp ./tm2scratch/index.html ./build/index.html
- run: cp ./tm2scratch/favicon.ico ./build/static/favicon.ico
- uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./build
publish_branch: master
- uses: rtCamp/action-slack-notify@v2
env:
SLACK_USERNAME: TM2Scratch
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_MESSAGE: 'tm2scratch is deployed! :rocket:'
SLACK_ICON: https://champierre.github.io/tm2scratch/static/favicon.ico