diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b8a9a9f..d500955 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,13 +3,18 @@ name: Deploy Examples on: push: branches: ["master", "etowahadams/fix-deploy"] - + # Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages permissions: contents: read pages: write id-token: write +# Allow one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: true + jobs: deploy: runs-on: ubuntu-latest @@ -17,14 +22,16 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - run: yarn install - - name: Deploy - run: | - git config --global user.name "action@github.com" - git config --global user.email "GitHub Action" - git remote set-url origin https://${ACCESS_TOKEN}@github.com/${REPO}.git - yarn deploy - env: - ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} - REPO: ${{ github.repository }} \ No newline at end of file + - run: yarn build + - name: Setup Pages + uses: actions/configure-pages@v3 + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + # Upload dist repository + path: "./build" + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 \ No newline at end of file