-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating & transfert to github main page...
- Loading branch information
Ambratolm
authored and
Ambratolm
committed
Dec 15, 2024
1 parent
a7c05c2
commit 331c2da
Showing
57 changed files
with
13,437 additions
and
22,804 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Deploy Vue 2 to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- master # Trigger the workflow when changes are pushed to the 'main' branch | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Step 1: Checkout the code | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
# Step 2: Set up Node.js (use Node.js 12 as required) | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 12 | ||
|
||
# Step 3: Install dependencies | ||
- name: Install dependencies | ||
run: npm install | ||
|
||
# Step 4: Lint the project | ||
- name: Build project | ||
run: npm run lint | ||
|
||
# Step 5: Build the project | ||
- name: Build project | ||
run: npm run build | ||
|
||
# Step 6: Deploy to GitHub Pages | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./dist # The directory where the Vue build output is located |
Oops, something went wrong.