-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.27 KB
/
deploy.yaml
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:
workflow_dispatch:
jobs:
deploy:
name: Deploy Application
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Cache Node Modules
uses: actions/cache@v4
with:
path: |
~/.npm
node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Download Build Artifact
uses: dawidd6/action-download-artifact@v7
with:
name: dist-artifact
github_token: ${{ github.token }}
workflow: build.yaml
workflow_search: true
workflow_conclusion: success
path: dist/
- name: Setup Git Identity
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: latest
- name: Install Dependencies
run: npm ci --cache .npm --prefer-offline
- name: Deploy to GitHub Pages
run: npx gh-pages -d dist --repo https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/Fingertips18/fingertips18.github.io.git