-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (36 loc) · 1.08 KB
/
release-web-page.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
name: Release web page
on:
push:
branches:
- next-version
jobs:
release_webpage:
runs-on: ubuntu-latest
steps:
- name: Checkout current repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: gradle
- name: Build production web page
run: ./gradlew jsBrowserProductionWebpack
- name: Package production web page
run: ./gradlew jsBrowserDistribution
- name: Publish to gh-pages
run: |
git worktree add --detach docs-temp
cd docs-temp
git checkout --orphan gh-pages
git reset HEAD -- .
git clean -df
mv ../build/dist/js/productionExecutable/* .
git status
git config --global user.email "[email protected]"
git config --global user.name "OPENRNDR Actions"
git add .
git commit -m "Add automatically generated web page"
git push origin gh-pages --force