diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index ca441ef..0000000 --- a/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -*.min.* diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index a873810..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "root": true, - "env": { - "es6": true, - "node": true - }, - "extends": ["eslint:recommended"], - "rules": { - "no-undef": "off" - } -} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ded73fb..5306b5d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,25 +1,34 @@ -name: Website +name: "Deploy to GitHub Pages" on: pull_request: push: + branches: + - main workflow_dispatch: +# Allow this job to clone the repo and create a page deployment +permissions: + contents: read + pages: write + id-token: write + jobs: build: runs-on: ubuntu-latest steps: - name: ⬇️ Checkout uses: actions/checkout@v4 - - - name: ⎔ Setup node - uses: actions/setup-node@v4 - with: - cache: npm - cache-dependency-path: package-lock.json - - - name: 📥 Download deps - run: npm ci - - - name: Run build - run: npm run build + - name: Install, build, and upload your site + uses: withastro/action@v3 +` + deploy: + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4