-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 1.08 KB
/
main.yml
File metadata and controls
49 lines (39 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: portfolio-deploy
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
name: Build and Deploy Vue
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
ref: 'master'
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install and Build
run: |
npm ci
npm run build
- name: Deploy to tleeaf.github.io
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
id: deployment
run: |
cd dist
git init
git config user.name "Github Actions"
git config user.email "<>"
git add .
git commit -m "Deploy from repository"
git remote add origin https://github.com/tleeaf/tleeaf.github.io.git
git remote set-url --push origin https://x-access-token:$GITHUB_TOKEN@github.com/tleeaf/tleeaf.github.io.git
git push -f origin master