Skip to content

Commit

Permalink
add deploy step
Browse files Browse the repository at this point in the history
  • Loading branch information
will-cromar committed Apr 24, 2024
1 parent 47920b5 commit 6155e75
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ on:
description: Runner type for the test
default: linux.4xlarge
jobs:
push-docs:
runs-on: ${{ inputs.runner }}
build-docs:
runs-on: ubuntu-latest
timeout-minutes: 45
container:
image: ${{ inputs.dev-image }}
Expand Down Expand Up @@ -50,8 +50,26 @@ jobs:
subdir=${{ env.BRANCH_NAME == 'master' && 'master' || format('{0}/{1}', 'release', env.BRANCH_NAME) }}
mkdir -p gh-pages/$subdir
cp -fR pytorch/xla/docs/build/* gh-pages/$subdir
- name: Show diff
shell: bash
run: |
cd gh-pages
git diff
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'gh-pages'

deploy:
needs: build-docs
runs-on: ubuntu-latest
# permissions:
# pages: write
# id-token: write

# Deploy to the github-pages environment
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}

# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v4

- name: Skip
run: echo "testing..."

0 comments on commit 6155e75

Please sign in to comment.