-
Notifications
You must be signed in to change notification settings - Fork 27
55 lines (50 loc) · 1.42 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Deploy
on:
push:
branches:
- master
tags:
- "!*"
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: LLK/scratch-gui
ref: develop
- run: npm install
- uses: actions/checkout@v4
with:
path: ./tm2scratch
- uses: actions/checkout@v4
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: NODE_OPTIONS=--openssl-legacy-provider npm run build
- run: cp ./tm2scratch/favicon.ico ./build/static/favicon.ico
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'build'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- 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