File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : deploy
2+ permissions :
3+ contents : write
4+ pages : write
5+
26on :
37 workflow_dispatch :
48 push :
5- branches :
6- - main
9+ tags :
10+ - ' v*'
11+
712jobs :
813 deploy :
914 runs-on : ubuntu-latest
15+ environment : production
1016 steps :
1117 - name : Checkout
1218 uses : actions/checkout@v6
13- with :
14- persist-credentials : false
1519
1620 - name : Setup Node
1721 uses : actions/setup-node@v6
@@ -23,18 +27,23 @@ jobs:
2327
2428 - name : Build project and prepare for deployment
2529 env :
26- NODE_ENV : production
30+ VITE_EMAIL_ADDRESS : ${{ vars.EMAIL_ADDRESS }}
31+ VITE_LINKEDIN_USERNAME : ${{ vars.USERNAME_LINKEDIN }}
32+ VITE_GITHUB_USERNAME : ${{ vars.USERNAME_GITHUB }}
33+ VITE_TWITTER_USERNAME : ${{ vars.USERNAME_TWITTER }}
34+ VITE_CV_URL : ${{ vars.CV_URL }}
2735 run : |
2836 yarn build
2937 touch dist/.nojekyll
3038 cp CNAME ./dist
3139
3240 - name : Deploy to GitHub Pages
33- uses : crazy-max/ghaction-github-pages@v2
41+ uses : crazy-max/ghaction-github-pages@v4
3442 if : success()
3543 with :
3644 target_branch : gh-pages
3745 build_dir : dist
38- commit_message : ' chore: deploy to GitHub Pages'
46+ commit_message : |
47+ ${{ github.event_name == 'push' && format('chore(release): {0}', github.ref_name) || 'chore(release): Push to Github Pages' }}
3948 env :
4049 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ permissions :
9+ contents : write
10+ pull-requests : write
11+
12+ jobs :
13+ release-please :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : google-github-actions/release-please-action@v4
17+ with :
18+ release-type : node
19+ token : ${{ secrets.CI_TOKEN }}
20+ target-branch : main
You can’t perform that action at this time.
0 commit comments