From 8b00a9fc0c103f18e7e45b8ec9c7da756d4ca53a Mon Sep 17 00:00:00 2001 From: Azalea Date: Tue, 21 Nov 2023 23:24:48 -0800 Subject: [PATCH] Create deploy.yml --- .github/workflows/deploy.yml | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 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..7c434c1 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,39 @@ +name: Deploy to GH Pages + +on: + push: + branches: [ "master" ] + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + permissions: + pages: write + id-token: write + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'yarn' + cache-dependency-path: 'yarn.lock' + + - name: Install and build + run: | + yarn install + yarn build + + - name: Upload build artifact + uses: actions/upload-pages-artifact@v1 + with: + path: ./build # Make sure this path points to your build output directory + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 + + # Optionally, add a step to output the deployment URL + - name: Output deployment URL + run: echo "Deployed to ${{ steps.deployment.outputs.page_url }}"