-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 1018 Bytes
/
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
name: Portfolio - Deploy
on:
workflow_dispatch:
jobs:
deploy:
name: Deploy Application
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Download Build Artifact
uses: dawidd6/action-download-artifact@v8
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 install gh-pages --save-dev
- 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