Skip to content

Commit

Permalink
q suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
LilWikipedia committed Nov 25, 2024
1 parent abd3e31 commit 016c644
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 9 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Deploy to GitHub Pages

on:
push:
branches: ['main'] # or your default branch

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

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./dist

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
8 changes: 0 additions & 8 deletions deploy.sh

This file was deleted.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
"private": true,
"version": "0.0.0",
"type": "module",
"homepage": "https://lilwikipedia.github.io/rf-meter",
"scripts": {
"dev": "vite",
"build": "vite build",
"build:dev": "vite build --mode development",
"lint": "eslint .",
"preview": "vite preview"
"preview": "vite preview",
"predeploy": "npm run build",
"deploy": "gh-pages -d dist"
},

"dependencies": {
Expand Down

0 comments on commit 016c644

Please sign in to comment.