Skip to content

Commit

Permalink
add auto-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kagol committed Apr 8, 2024
1 parent ebe8884 commit 4986b8c
Show file tree
Hide file tree
Showing 46 changed files with 64 additions and 4,930 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/auto-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Deploy

on:
push:
branches: [main]

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies
run: npm i --force
- name: Build with VitePress
run: |
npm run docs:build
sleep 10
exit 0
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ node_modules
.DS_Store
dist
dist-ssr
!/docs/.vitepress/dist
*.local
1 change: 0 additions & 1 deletion docs/.vitepress/dist/assets/Home.e40c3557.js

This file was deleted.

4 changes: 0 additions & 4 deletions docs/.vitepress/dist/assets/app.7fe229af.js

This file was deleted.

73 changes: 0 additions & 73 deletions docs/.vitepress/dist/assets/features_autoplay_index.md.88d6f241.js

This file was deleted.

Loading

0 comments on commit 4986b8c

Please sign in to comment.