diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 65889d70..0eda20b6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,11 +5,6 @@ on: branches: - main -permissions: - contents: write - pages: write - id-token: write - concurrency: group: "pages" cancel-in-progress: false @@ -41,10 +36,23 @@ jobs: npm install npm run build working-directory: website - - name: Deploy - run: | - git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git - npm run deploy -- -u "github-actions-bot " - working-directory: website - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: ./website/out + +# Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + permissions: + contents: write + pages: write + id-token: write + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 \ No newline at end of file