-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (48 loc) · 1.31 KB
/
ci.yml
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
name: test, build and deploy site
on: [push]
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: run linting & tests
uses: cypress-io/github-action@v5
with:
start: npm run test
env:
CYPRESS_baseUrl: http://localhost:8080/
- uses: actions/upload-artifact@v4
if: failure()
with:
name: test-artifacts
path: |
./cypress/videos/
./mochawesome-report/
build-and-deploy:
needs: run-tests
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: npm install
- name: Build the site
run: npm run build
- name: Deploy the site
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
update-resume-gist:
needs: build-and-deploy
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Update Resume Gist
uses: exuanbo/actions-deploy-gist@v1
with:
token: ${{ secrets.TOKEN }}
gist_id: 1ab255457bdc9c22a4453ad383bc3108
file_path: resume/resume.clintp.json