diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 4606113..9ff4f4a 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,20 +1,32 @@ -name: Build and Deploy +name: Deploy to GitHub Pages on: push: branches: [ main ] - pull_request: - branches: [ main ] + workflow_dispatch: + +permissions: + contents: write + pages: write + id-token: write jobs: - build-and-deploy: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - - name: Checkout 🛎️ - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v4 - - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@4.1.4 + - name: Setup Pages + uses: actions/configure-pages@v4 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 with: - branch: gh-pages - folder: . - clean: true \ No newline at end of file + path: '.' + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file