Skip to content

Commit

Permalink
Create deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
seigler authored Apr 7, 2024
1 parent bbcbe8e commit c51538b
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/deploy
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Vite Github Pages Deploy

on:
# Runs on pushes targeting the default branch
push:
branches: ["master", "main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

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

jobs:
# Build job
build:
runs-on: ubuntu-latest
environment:
name: demo
url: ${{ steps.deploy_to_pages.outputs.github_pages_url }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: "npm"
- name: Install dependencies
run: npm install
- name: Build
run: npm run build ./dist
- name: Vite Github Pages Deployer
uses: skywarth/[email protected]
id: deploy_to_pages
with:
build_path: ./dist

0 comments on commit c51538b

Please sign in to comment.