diff --git a/.github/workflows/gh-pages-deploy.yml b/.github/workflows/gh-pages-deploy.yml index 61ff175..3cb6d28 100644 --- a/.github/workflows/gh-pages-deploy.yml +++ b/.github/workflows/gh-pages-deploy.yml @@ -1,6 +1,14 @@ name: Build and Deploy -on: [push] +on: + push: + branches: ["master"] + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write jobs: build-and-deploy: @@ -8,14 +16,20 @@ jobs: environment: name: github-pages - url: https://e965.ru + url: ${{ steps.deployment.outputs.page_url }} steps: - name: Checkout 🛎️ - uses: actions/checkout@v2 + uses: actions/checkout@v3 - - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@v4.4.0 + - name: Setup Pages + uses: actions/configure-pages@v3 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 with: - branch: gh-pages - folder: dist + path: './dist' + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2