Skip to content

Commit

Permalink
Try
Browse files Browse the repository at this point in the history
  • Loading branch information
aheejin committed May 23, 2024
1 parent 57cc4b1 commit a4d148a
Showing 1 changed file with 45 additions and 25 deletions.
70 changes: 45 additions & 25 deletions .github/workflows/ci-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,6 @@ jobs:
name: core-rendered
path: document/core/_build/html

build-legacy-exception-handling-spec:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Setup TexLive
run: sudo apt-get update -y && sudo apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
- name: Setup Sphinx
run: pip install six && pip install sphinx==5.1.0
- name: Build main spec
run: cd document/legacy/exception-handling && make main
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: legacy-exception-handling-rendered
path: document/legacy/exception-handling/_build/html

build-js-api-spec:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -90,9 +71,43 @@ jobs:
name: web-api-rendered
path: document/web-api/index.html

build-legacy-exception-handling-core-spec:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Setup TexLive
run: sudo apt-get update -y && sudo apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
- name: Setup Sphinx
run: pip install six && pip install sphinx==5.1.0
- name: Build main spec
run: cd document/legacy/exception-handling/core && make main
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: legacy-exception-handling-core-rendered
path: document/legacy/exception-handling/core/_build/html

build-legacy-exception-handling-js-api-spec:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup Bikeshed
run: pip install bikeshed && bikeshed update
- name: Run Bikeshed
run: bikeshed spec "document/legacy/exception-handling/js-api/index.bs" "document/legacy/exception-handling/js-api/index.html"
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: legacy-exception-handling-js-api-rendered
path: document/legacy/exception-handling/js-api/index.html

publish-spec:
runs-on: ubuntu-latest
needs: [build-core-spec, build-legacy-exception-handling-spec, build-js-api-spec, build-web-api-spec]
needs: [build-core-spec, buiod-js-api-spec, build-web-api-spec, build-legacy-exception-handling-core-spec, build-legacy-exception-handling-js-api-spec]
steps:
- name: Checkout repo
uses: actions/checkout@v2
Expand All @@ -103,11 +118,6 @@ jobs:
with:
name: core-rendered
path: _output/core
- name: Download legacy exception-handling spec artifact
uses: actions/download-artifact@v2
with:
name: legacy-exception-handling-rendered
path: _output/legacy/exception-handling
- name: Download JS API spec artifact
uses: actions/download-artifact@v2
with:
Expand All @@ -118,6 +128,16 @@ jobs:
with:
name: web-api-rendered
path: _output/web-api
- name: Download legacy exception-handling core spec artifact
uses: actions/download-artifact@v2
with:
name: legacy-exception-handling-core-rendered
path: _output/legacy/exception-handling/core
- name: Download legacy exception-handling JS API spec artifact
uses: actions/download-artifact@v2
with:
name: legacy-exception-handling-js-api-rendered
path: _output/legacy/exception-handling/js-api
- name: Publish to GitHub Pages
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
Expand Down

0 comments on commit a4d148a

Please sign in to comment.