FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
docs/.github/workflows/build.yml at github/update-issue-template · CommandAPI/docs · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
CommandAPI
/
docs
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
0
Code
Issues
2
Pull requests
2
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
docs
/
.github
/
workflows
/
build.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
75 lines (59 loc) · 2.08 KB
Breadcrumbs
docs
/
.github
/
workflows
/
build.yml
Copy path
File metadata and controls
75 lines (59 loc) · 2.08 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
name
:
Build
on
:
push
:
branches
:
-
master
-
'
ver/**
'
jobs
:
build
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout Branch
uses
:
actions/checkout@v2
-
name
:
Inject Base Url
run
:
|
BRANCH=$(echo ${GITHUB_REF} | sed -e 's/refs\/heads\///')
if [[ $BRANCH == ver/* ]]; then
VER=$(echo $BRANCH | sed 's|ver/||')
echo ${VER} > VER
fi
-
name
:
Setup Java
uses
:
actions/setup-java@v4
with
:
java-version
:
'
21
'
distribution
:
'
temurin
'
architecture
:
x64
-
name
:
Verify Reference Codes
#
For dev builds, we want this enabled because dev builds aren't published yet
#
TODO: Make this not apply to dev builds
continue-on-error
:
true
run
:
|
cd ./reference-code
./gradlew build
-
name
:
Setup Node.js
uses
:
actions/setup-node@v2
with
:
node-version
:
'
20
'
-
name
:
Install Docs Dependencies
run
:
yarn install
-
name
:
Build Docs
run
:
'
yarn run docs:build
'
-
name
:
Push to Build Branch
run
:
|
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
BRANCH=$(echo ${GITHUB_REF} | sed -e 's/refs\/heads\///')
TARGET_BRANCH="build/${BRANCH}"
if git ls-remote --heads origin ${TARGET_BRANCH} | grep ${TARGET_BRANCH}; then
git push origin --delete ${TARGET_BRANCH}
fi
find . -mindepth 1 -maxdepth 1 ! -name 'docs' ! -name '.git' -exec rm -rf {} +
find docs -mindepth 1 -maxdepth 1 ! -name '.vitepress' -exec rm -rf {} +
cp -r docs/.vitepress/dist/* .
rm -rf docs
git checkout -b "${TARGET_BRANCH}"
git add .
git commit -m "GitHub Actions Auto Build ${BRANCH}"
echo "Branch: ${BRANCH}"
echo "Pushing to ${TARGET_BRANCH}"
git push origin "${TARGET_BRANCH}"
Back
|
FazBrowse Home
|
New Git URL