diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8cec49f..2d62f21 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,37 +54,27 @@ jobs: run: npm test - name: Upload docs - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 if: github.repository == 'mdo/github-buttons' && startsWith(github.ref, 'refs/tags/') with: - name: docs path: ./_site/ - if-no-files-found: error deploy: runs-on: ubuntu-latest needs: test if: github.repository == 'mdo/github-buttons' && startsWith(github.ref, 'refs/tags/') - timeout-minutes: 10 + timeout-minutes: 20 permissions: - contents: read + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + concurrency: + group: pages + cancel-in-progress: false steps: - - name: Clone repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - - name: Download docs - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 - with: - name: docs - path: ./_site/ - - name: Deploy - uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0 - with: - allow_empty_commit: false - personal_token: ${{ secrets.PERSONAL_TOKEN }} - publish_branch: gh-pages - publish_dir: ./_site/ + id: deployment + uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1 diff --git a/docs/CNAME b/docs/CNAME deleted file mode 100644 index 4674120..0000000 --- a/docs/CNAME +++ /dev/null @@ -1 +0,0 @@ -ghbtns.com \ No newline at end of file