diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c0189de..c96f9c2 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -3,22 +3,25 @@ name: docs on: push: branches: - - ocp-4 + - master env: SITE_DIR: "gh-pages" jobs: build_site: name: "Build site with Antora" runs-on: [ubuntu-latest] + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: "Generate site using antora site action" uses: kameshsampath/antora-site-action@master with: antora_playbook: site.yml - name: "Upload generated site" - uses: actions/upload-artifact@v1.0.0 + uses: actions/upload-artifact@v2 with: name: site path: "${{ github.workspace }}/${{ env.SITE_DIR }}" @@ -35,10 +38,5 @@ jobs: name: site path: "${{ github.workspace }}/${{ env.SITE_DIR }}" - name: Deploy to GitHub Pages - uses: JamesIves/github-pages-deploy-action@3.2.1 - with: - # ACCESS_TOKEN: # optional - GITHUB_TOKEN: "${{ github.token}}" - FOLDER: "${{ env.SITE_DIR }}" - BRANCH: "gh-pages" - COMMIT_MESSAGE: "[CI] Publish Documentation for ${{ github.sha }}" + id: deployment + uses: actions/deploy-pages@v2