Skip to content

Commit

Permalink
Add GitHub Actions workflow for deploying to GitHub Pages and VSCode …
Browse files Browse the repository at this point in the history
…settings for YAML schema validation
  • Loading branch information
nicnocquee committed Oct 9, 2024
1 parent dc13cab commit 7470967
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- uses: oven-sh/setup-bun@v2

- name: Install dependencies
run: bun install

- name: Build and export
run: bun run build

# - name: Create CNAME file
# run: echo "hyperjump.tech" > out/CNAME

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"yaml.schemas": {
"https://json.schemastore.org/github-workflow.json": "file:///Users/nico/Projects/work/hyperjump/hyperjump.tech-2024/.github/workflows/deploy.yml"
}
}

0 comments on commit 7470967

Please sign in to comment.