diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index b0657df..266e561 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -5,7 +5,8 @@ "customizations": { "vscode": { "extensions": [ - "EditorConfig.EditorConfig" + "EditorConfig.EditorConfig", + "YoavBls.pretty-ts-errors" ] } } diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 0000000..0bd94f6 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,51 @@ +name: Deploy to Github Pages + +on: + push: + branches: ['master'] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: 'pages' + cancel-in-progress: true + +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + + - name: Install Dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Setup Github Pages staging area + uses: actions/configure-pages@v5 + + - name: Upload build to Github Pages staging area + uses: actions/upload-pages-artifact@v3 + with: + path: './dest' + + - name: Deploy to Github Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.gitignore b/.gitignore index b25c15b..a2b4a64 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ *~ +node_modules/ +dist/ diff --git a/index.html b/index.html index a4ed308..5941639 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@