Skip to content

Commit

Permalink
Update github actions script
Browse files Browse the repository at this point in the history
  • Loading branch information
woshibiantai committed Jul 15, 2024
1 parent 2f20eeb commit 223ae31
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/deploy-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,25 @@ name: Deploy App
run-name: ${{ github.actor }} is deploying the app
on: [push]
jobs:
Deploy-App:
build:
runs-on: ubuntu-latest
steps:
- run: echo "Starting..."
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
- run: echo "Installing dependencies..."
- run: npm install
- run: echo "Building the app..."
- run: npm run build

deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.url }}
runs-on: ubuntu-latest
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 @@ -9,7 +9,6 @@ lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"scripts": {
"dev": "vite",
"build": "vite build",
"predeploy": "npm run build",
"deploy": "gh-pages -d dist",
"preview": "vite preview",
"test:unit": "vitest",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
Expand Down

0 comments on commit 223ae31

Please sign in to comment.