Skip to content

Commit 554d2ee

Browse files
authored
Merge pull request #19 from htmlhint/dev/coliff/config-fix
Config Fix
2 parents 926f3ba + 50b5253 commit 554d2ee

File tree

3 files changed

+22
-25
lines changed

3 files changed

+22
-25
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,34 @@
1-
name: Website
1+
name: "Deploy to GitHub Pages"
22

33
on:
44
pull_request:
55
push:
6+
branches:
7+
- main
68
workflow_dispatch:
79

10+
# Allow this job to clone the repo and create a page deployment
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
816
jobs:
917
build:
1018
runs-on: ubuntu-latest
1119
steps:
1220
- name: ⬇️ Checkout
1321
uses: actions/checkout@v4
14-
15-
- name: ⎔ Setup node
16-
uses: actions/setup-node@v4
17-
with:
18-
cache: npm
19-
cache-dependency-path: package-lock.json
20-
21-
- name: 📥 Download deps
22-
run: npm ci
23-
24-
- name: Run build
25-
run: npm run build
22+
- name: Install, build, and upload your site
23+
uses: withastro/action@v3
24+
`
25+
deploy:
26+
needs: build
27+
runs-on: ubuntu-latest
28+
environment:
29+
name: github-pages
30+
url: ${{ steps.deployment.outputs.page_url }}
31+
steps:
32+
- name: Deploy to GitHub Pages
33+
id: deployment
34+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)