-
Notifications
You must be signed in to change notification settings - Fork 1
71 lines (62 loc) · 1.9 KB
/
resume.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Resume
on: [push]
jobs:
# test:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# cache: yarn
# node-version: 16
# - run: yarn install --frozen-lockfile
test-action:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: yarn
node-version: 16
- run: cd resume-action && yarn install --frozen-lockfile
- name: make-resume
id: make-resume
uses: ./resume-action
with:
github_user_name: NeonGamerBot-QK
- name: push resume to the output branch
uses: crazy-max/ghaction-github-pages@v3.1.0
with:
target_branch: output-resume
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#- name: ensure the generated file exists
# run: |
# ls dist
# test -f dist/file.pdf
# - uses: crazy-max/ghaction-github-pages@v3.1.0
# with:
# target_branch: output
# build_dir: dist
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# deploy-ghpages:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# cache: yarn
# node-version: 16
# - run: yarn install --frozen-lockfile
# - run: yarn build:demo
# env:
# GITHUB_USER_CONTRIBUTION_API_ENDPOINT: https://snk-one.vercel.app/api/github-user-contribution/
# - uses: crazy-max/ghaction-github-pages@v3.1.0
# if: success() && github.ref == 'refs/heads/main'
# with:
# target_branch: gh-pages
# build_dir: packages/demo/dist
# env:
# GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN_GH_PAGES }}