forked from TurboWarp/scratch-blocks
-
Notifications
You must be signed in to change notification settings - Fork 44
88 lines (77 loc) · 2.09 KB
/
rebuild.yml
File metadata and controls
88 lines (77 loc) · 2.09 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Rebuild
on:
workflow_dispatch:
push:
branches:
- develop
permissions:
contents: write
pages: write
id-token: write
pull-requests: write
deployments: write
concurrency:
group: "pages"
jobs:
rebuild:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-22.04
steps:
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Checkout
uses: actions/checkout@v3
- name: Rebuild
run: |
sudo apt install python2
npm install
npm run translate
- name: Upload built-dist
uses: actions/upload-artifact@v4
with:
name: built-dist
path: dist
- name: Upload built-media
uses: actions/upload-artifact@v4
with:
name: built-media
path: media
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './'
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
- name: Checkout to develop-builds
uses: actions/checkout@v3
with:
ref: develop-builds
- name: Clear out things
run: |
rm -rf dist/*
rm -rf media/*
- name: Download built-dist
uses: actions/download-artifact@v4
with:
name: built-dist
path: dist/
- name: Download built-media
uses: actions/download-artifact@v4
with:
name: built-media
path: media/
- name: Commit
uses: EndBug/add-and-commit@v9.1.1
with:
message: "Build"
committer_name: GitHub Actions
committer_email: actions@github.com
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2.0.1
with:
token: ${{ secrets.t }}
event-type: update
repository: PenguinMod/penguinmod.github.io