From 6e685b700df843f3e2b3023ef7b7b1f3b9201f2b Mon Sep 17 00:00:00 2001 From: Thea Flowers Date: Fri, 13 Sep 2024 11:23:40 -0400 Subject: [PATCH] add GitHub pages action --- .github/workflows/.prettierrc | 7 +++++++ .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/.prettierrc create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/.prettierrc b/.github/workflows/.prettierrc new file mode 100644 index 0000000..6d121cc --- /dev/null +++ b/.github/workflows/.prettierrc @@ -0,0 +1,7 @@ +{ + "tabWidth": 2, + "useTabs": false, + "printWidth": 80, + "trailingComma": "all", + "bracketSameLine": true +} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..7d30d4c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: Publish + +on: + workflow_dispatch: + push: + branches: main + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/upload-pages-artifact@v3 + with: + name: github-pages + path: ./src + deploy: + environment: + name: github-pages + url: ${{steps.deployment.outputs.page_url}} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4