Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: add offline docs #8527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jul 19, 2023
Prev Previous commit
Next Next commit
Add offline docs to release yaml
  • Loading branch information
BrunoQuaresma committed Jul 19, 2023
commit 4a071433388bb1a04b3033dce1a8ac41ca6f4e0d
25 changes: 0 additions & 25 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -590,31 +590,6 @@ jobs:
projectToken: 695c25b6cb65
workingDir: "./site"

offlinedocs:
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Required by Chromatic for build-over-build history, otherwise we
# only get 1 commit on shallow checkout.
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16.20.1
- run: yarn install
working-directory: ./offlinedocs
- run: yarn export
working-directory: ./offlinedocs
- name: Tar files
run: tar -cvf docs.tar -C offlinedocs/out .
- name: Upload docs artifact
uses: actions/upload-artifact@v3
with:
name: docs
path: docs.tar

required:
runs-on: ubuntu-latest
needs: [fmt, lint, gen, test-go, test-go-pg, test-go-race, test-js]
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -414,3 +414,28 @@ jobs:
# For gh CLI. We need a real token since we're commenting on a PR in a
# different repo.
GH_TOKEN: ${{ secrets.CDRCI_GITHUB_TOKEN }}

offline-docs:
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Required by Chromatic for build-over-build history, otherwise we
# only get 1 commit on shallow checkout.
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16.20.1
- run: yarn install
working-directory: ./offlinedocs
- run: yarn export
working-directory: ./offlinedocs
- name: Tar files
run: tar -cvf docs.tar -C offlinedocs/out .
- name: Upload docs artifact
uses: actions/upload-artifact@v3
with:
name: docs
path: docs.tar