9
9
- ' !workspaces/functions/**'
10
10
workflow_dispatch :
11
11
12
- env :
13
- GENERATED_README_KEY : readme
14
-
15
12
jobs :
16
13
deploy :
17
- runs-on : ubuntu-20.04
14
+ runs-on : ubuntu-latest
18
15
concurrency :
19
16
group : ${{ github.workflow }}-${{ github.ref }}
20
17
steps :
@@ -30,23 +27,14 @@ jobs:
30
27
run : sudo apt-get install -y xvfb
31
28
32
29
- name : Install dependencies
33
- run : yarn install
30
+ run : yarn
34
31
35
32
- name : Generate opengraph
36
33
run : yarn workspace @teimurjan/website generate-opengraph:ci
37
34
38
35
- name : Generate resume
39
36
run : yarn workspace @teimurjan/website generate-resume
40
37
41
- - name : Generate readme
42
- run : yarn workspace @teimurjan/profile-readme generate-readme
43
-
44
- - name : Upload readme artifact
45
- uses : actions/upload-artifact@v4
46
- with :
47
- name : ${{ env.GENERATED_README_KEY }}
48
- path : workspaces/profile-readme/README.md
49
-
50
38
- name : Build
51
39
run : yarn workspace @teimurjan/website build
52
40
56
44
with :
57
45
github_token : ${{ secrets.GITHUB_TOKEN }}
58
46
publish_dir : ./workspaces/website/out
59
-
60
- deploy-profile :
61
- runs-on : ubuntu-20.04
62
- needs : deploy
63
- concurrency :
64
- group : ${{ github.workflow }}-${{ github.ref }}
65
- steps :
66
- - name : Download readme artifact
67
- uses : actions/download-artifact@v4
68
- with :
69
- name : ${{ env.GENERATED_README_KEY }}
70
-
71
- - name : Clone teimurjan repo
72
- run : |
73
- git clone https://x-access-token:${{ secrets.TEIMURJAN_REPO_TOKEN }}@github.com/teimurjan/teimurjan.git
74
-
75
- - name : Copy readme to teimurjan
76
- run : |
77
- cp README.md teimurjan/README.md
78
-
79
- - name : Commit and push changes to teimurjan
80
- working-directory : teimurjan
81
- run : |
82
- git config user.name "github-actions[bot]"
83
- git config user.email "github-actions[bot]@users.noreply.github.com"
84
- git add README.md
85
- git commit -m "Update README.md content from teimurjan.github.io" || echo "No changes to commit"
86
- git push origin HEAD:main
0 commit comments