Skip to content

Commit

Permalink
try an other ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesfize committed Jan 4, 2025
1 parent 85734d6 commit e67b0d1
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions .github/workflows/ghpage.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
name: Build Vue
on: [push]
jobs:
build_vue:
build:
runs-on: ubuntu-latest
name: Build Vue

steps:
- uses: actions/checkout@v2
- name: Use Node.js '20.x'
uses: actions/setup-node@v2
- name: 🛎️ Checkout code
uses: actions/checkout@v4

- name: 📦 Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "npm"
- id: Build-Vue
uses: SerhiiKa/[email protected]
node-version: "21"

- name: 📥 Install dependencies
run: npm install

- name: 🏗️ Build
run: npm run build

- name: 🚀Deploy to GitHub Pages🚀 // --> this deploys to gh-pages
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
username: "jacquesfize"
reponame: "widget-gtsi"
token: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist

0 comments on commit e67b0d1

Please sign in to comment.