Skip to content

Commit

Permalink
Merge pull request #3375 from terascope/re-enable-docs
Browse files Browse the repository at this point in the history
update path to sync to pages
  • Loading branch information
godber authored Jul 13, 2023
2 parents 0aaadd1 + adb745f commit 3d0259c
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/publish-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,39 +44,39 @@ jobs:
- name: Publish to docker
run: yarn ts-scripts publish -t dev docker

# WIP: The publish step doesn't work yet, see:
# https://github.com/terascope/teraslice/issues/3366
# build-docs:
# runs-on: ubuntu-latest
# needs: build-release
# steps:
# - name: Check out code
# uses: actions/checkout@v3
build-docs:
runs-on: ubuntu-latest
needs: build-release
steps:
- name: Check out code
uses: actions/checkout@v3

# - name: Setup Node
# uses: actions/setup-node@v3
# with:
# node-version: 18.16.0
# registry-url: 'https://registry.npmjs.org'
# cache: 'yarn'
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.16.0
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'

# - name: Build documentation
# run: ./scripts/build-documentation.sh # output in website/build
# - name: Upload artifact
# uses: actions/upload-pages-artifact@v1
# with:
# path: ./website/build
- name: Build documentation
run: ./scripts/build-documentation.sh # output in website/build
- name: Check Output
run: find ./website/build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./website/build/teraslice

# publish-docs:
# runs-on: ubuntu-latest
# needs: build-docs
# permissions:
# pages: write # to deploy to Pages
# id-token: write
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# steps:
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v2
publish-docs:
runs-on: ubuntu-latest
needs: build-docs
permissions:
pages: write # to deploy to Pages
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 3d0259c

Please sign in to comment.