forked from Physical-Intelligence/openpi
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (54 loc) · 1.68 KB
/
Copy pathdroid-openpi-docs.yml
File metadata and controls
64 lines (54 loc) · 1.68 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
52
53
54
55
56
57
58
59
60
61
62
63
64
name: DROID/OpenPI docs
on:
push:
branches: ["main"]
paths:
- "docs/droid-openpi-pipeline/**"
- ".github/workflows/droid-openpi-docs.yml"
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "droid-openpi-docs"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
bundler-cache: true
working-directory: docs/droid-openpi-pipeline
- name: Build DROID/OpenPI docs
working-directory: docs/droid-openpi-pipeline
run: |
cat > "$RUNNER_TEMP/droid-openpi-pages.yml" <<'YAML'
url: "https://wisc-hci.github.io"
baseurl: "/openpi/droid-openpi-pipeline"
YAML
bundle exec jekyll build \
--config "_config.yml,$RUNNER_TEMP/droid-openpi-pages.yml" \
--destination "$GITHUB_WORKSPACE/_site/droid-openpi-pipeline"
cat > "$GITHUB_WORKSPACE/_site/index.html" <<'HTML'
<!doctype html>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=/openpi/droid-openpi-pipeline/">
<title>DROID/OpenPI Lab Pipeline</title>
<a href="/openpi/droid-openpi-pipeline/">DROID/OpenPI Lab Pipeline</a>
HTML
- uses: actions/upload-pages-artifact@v3
with:
path: _site
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}droid-openpi-pipeline/
runs-on: ubuntu-latest
needs: build
steps:
- id: deployment
uses: actions/deploy-pages@v4