forked from TurboWarp/scratch-blocks
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.36 KB
/
Copy pathpush-builds.yml
File metadata and controls
51 lines (45 loc) · 1.36 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
name: build-and-push
on:
push:
branches:
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Build
run: |
npm ci
npm run prepublish
- name: Push to develop-builds
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git checkout -B develop-builds
git add -f blockly_compressed_horizontal.js
git add -f blockly_compressed_vertical.js
git add -f blockly_uncompressed_horizontal.js
git add -f blockly_uncompressed_vertical.js
git add -f blocks_compressed_horizontal.js
git add -f blocks_compressed_vertical.js
git add -f blocks_compressed.js
git add -f shim/*
git commit -m "Automated build for ${GITHUB_SHA}"
git push origin develop-builds --force