From 587f2bba4298bc1f4829fb769e8f9e4057bd0ecf Mon Sep 17 00:00:00 2001 From: Dan Kotowski Date: Sat, 11 May 2024 17:44:33 -0500 Subject: [PATCH] Add Github Pages deploy script --- .github/workflows/deploy.yml | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..321cd1d --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,40 @@ +name: deploy +run-name: "${{ github.actor }} is deploying ${{ github.sha }}" +on: + push: + branches: + - 'master' +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + - name: Install Dependencies + run: | + npm install -g yarn + yarn install + - name: Build solution + run: yarn build + - name: Archive artifacts + uses: actions/upload-pages-artifact@v4 + with: + name: build-artifacts + path: dist/ + deploy: + needs: build + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file