From 6155e75a377c6aeda0bf340517a9eada7159e567 Mon Sep 17 00:00:00 2001 From: Will Cromar Date: Wed, 24 Apr 2024 20:19:52 +0000 Subject: [PATCH] add deploy step --- .github/workflows/_docs.yml | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/.github/workflows/_docs.yml b/.github/workflows/_docs.yml index 9980665a3b0..93f14a9899d 100644 --- a/.github/workflows/_docs.yml +++ b/.github/workflows/_docs.yml @@ -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 }} @@ -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..."