-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (45 loc) · 1.35 KB
/
publish.yaml
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
name: publish
on:
push:
branches:
- master
schedule:
- cron: '30 5,17 * * *'
workflow_dispatch:
jobs:
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- name: Checkout local code
uses: actions/checkout@v4
- name: Checkout che-website main branch
uses: actions/checkout@v4
with:
repository: eclipse-che/che-website
ref: main
path: che-website
- name: Install packages to build che-website
uses: bahmutov/npm-install@v1
with:
working-directory: che-website
- name: Build che-website to website/build/che
run: yarn build
working-directory: che-website
- name: Checkout che-docs publication branch
uses: actions/checkout@v4
with:
repository: eclipse-che/che-docs
ref: publication
path: che-docs
- name: Copy che-docs to website/buil/che
run: |
rm -rf che-docs/Jenkinsfile che-docs/push-to-eclipse-repository.sh che-docs/.git
cp -R che-docs/* che-website/build/che
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./che-website/build/che
publish_branch: publish
force_orphan: true