-
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
1 parent
655201f
commit e4d8555
Showing
16 changed files
with
2,312 additions
and
968 deletions.
There are no files selected for viewing
Empty file.
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,98 @@ | ||
## Worked on during a community livestream! | ||
## Go watch it @ twitch.tv/trhrichard if it's still live! | ||
|
||
name: Lint & check commits | ||
|
||
run-name: Run checks on ${{ github.sha }} | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
astro-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9.15.4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22.12.0 | ||
cache: "pnpm" | ||
cache-dependency-path: "./pnpm-lock.yaml" | ||
|
||
- name: Caching | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
.astro/ | ||
node_modules/ | ||
key: astro-check-cache | ||
restore-keys: | | ||
lint-check-cache | ||
deploy-cache | ||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile # --frozen-lockfile because I want to have anything done reproducible on my side as much as possible | ||
|
||
- name: Run Astro checks | ||
run: pnpm astro check | ||
|
||
prettier-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9.15.4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22.12.0 | ||
cache: "pnpm" | ||
cache-dependency-path: "./pnpm-lock.yaml" | ||
|
||
- name: Caching | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
.astro/ | ||
node_modules/ | ||
key: lint-check-cache | ||
restore-keys: | | ||
astro-check-cache | ||
deploy-cache | ||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile # --frozen-lockfile because I want to have anything done reproducible on my side as much as possible | ||
|
||
- name: Run Prettier checks | ||
id: prettier-check | ||
run: pnpm exec prettier --check . | ||
|
||
- name: Correct linting on pushes # I haven't figured this out btw | ||
id: prettier-write | ||
if: ${{ steps.prettier-check.outcome == failure() }} | ||
run: pnpm exec prettier --write . | ||
|
||
- name: Push correct linting # I have no idea if it works btw | ||
if: ${{ steps.prettier-write.outcome == success() && github.event_name == 'push' }} | ||
run: | | ||
git config user.name GitHub Actions CI | ||
git config user.email actions@github.com | ||
git add . | ||
git commit -m "[skip ci] Auto-format with Prettier" | ||
git push origin |
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 @@ | ||
## Worked on during a community livestream! | ||
## Go watch it @ twitch.tv/trhrichard if it's still live! | ||
|
||
name: Build & deploy to GitHub Pages | ||
|
||
run-name: Deploy ${{ github.sha }} to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9.15.4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22.12.0 | ||
cache: "pnpm" | ||
cache-dependency-path: "./pnpm-lock.yaml" | ||
|
||
- name: Caching | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
.astro/ | ||
node_modules/ | ||
dist/ | ||
key: deploy-cache | ||
restore-keys: | | ||
*-check-cache | ||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile # --frozen-lockfile because I want to have anything done reproducible on my side as much as possible | ||
|
||
- name: Build site | ||
run: pnpm build | ||
|
||
- name: Upload GitHub Pages artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: dist/ | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deploy.outputs.page_url }} | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deploy | ||
uses: actions/deploy-pages@v4 |
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,5 @@ | ||
package.json | ||
pnpm-lock.yaml | ||
package-lock.json | ||
yarn.lock | ||
.github/dependabot.yml |
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 |
---|---|---|
@@ -1,8 +1,14 @@ | ||
import { defineConfig } from 'astro/config'; | ||
import { defineConfig } from "astro/config"; | ||
|
||
import vue from "@astrojs/vue"; | ||
|
||
import tailwindcss from "@tailwindcss/vite"; | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
integrations: [vue()] | ||
}); | ||
integrations: [vue()], | ||
|
||
vite: { | ||
plugins: [tailwindcss()], | ||
}, | ||
}); |
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
Oops, something went wrong.