-
Notifications
You must be signed in to change notification settings - Fork 3
74 lines (63 loc) · 1.57 KB
/
create-release.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Create Release
on:
workflow_dispatch:
permissions:
contents: read
jobs:
build-and-publish:
runs-on: windows-latest
permissions:
actions: read
pages: write
contents: write
deployments: none
packages: none
pull-requests: write
security-events: none
checks: none
id-token: write
issues: write
repository-projects: none
statuses: none
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4
- name: Using Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Prep and Command Line Build
run: |
npm ci
pushd app
npm ci
npm run devenvandjsnbuild --max_old_space_size=16384
popd
- name: Run Tests
id: runtests
run: |
pushd samplecontent
pushd addon
npm ci
npx gulp package
popd
popd
pushd app
npm test
popd
- name: Create Minecraft Creator Tools release
id: create_mctools_release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/[email protected]
with:
target_branch: gh-pages
build_dir: app/build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}