-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Christopher J Baker
committed
Nov 8, 2024
1 parent
8dc983a
commit 7b444b7
Showing
1 changed file
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Home App | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
verify: | ||
name: Verify | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: npm | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: npm ci | ||
|
||
- name: ESLint | ||
shell: bash | ||
continue-on-error: true | ||
run: npm run lint-eslint | ||
|
||
- name: Prettier | ||
shell: bash | ||
continue-on-error: true | ||
run: npm run lint-prettier | ||
|
||
- name: Depcheck | ||
shell: bash | ||
continue-on-error: true | ||
run: npm run lint-depcheck | ||
|
||
- name: Build | ||
shell: bash | ||
run: | | ||
npm run build | ||
mkdir public/node_modules | ||
cp -r node_modules/@fontsource public/node_modules/@fontsource | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: public | ||
|
||
- name: Deploy to GitHub Pages | ||
if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/main' | ||
uses: actions/deploy-pages@v4 |