File tree 2 files changed +73
-51
lines changed
2 files changed +73
-51
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : " Build and Deploy"
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ - master
7
+ paths-ignore :
8
+ - .gitignore
9
+ - README.md
10
+ - LICENSE
11
+
12
+ # Allows you to run this workflow manually from the Actions tab
13
+ workflow_dispatch :
14
+
15
+ permissions :
16
+ contents : read
17
+ pages : write
18
+ id-token : write
19
+
20
+ # Allow one concurrent deployment
21
+ concurrency :
22
+ group : " pages"
23
+ cancel-in-progress : true
24
+
25
+ jobs :
26
+ build :
27
+ runs-on : ubuntu-latest
28
+
29
+ steps :
30
+ - name : Checkout
31
+ uses : actions/checkout@v4
32
+ with :
33
+ fetch-depth : 0
34
+ # submodules: true
35
+ # If using the 'assets' git submodule from Chirpy Starter, uncomment above
36
+ # (See: https://github.com/cotes2020/chirpy-starter/tree/main/assets)
37
+
38
+ - name : Setup Pages
39
+ id : pages
40
+ uses : actions/configure-pages@v4
41
+
42
+ - name : Setup Ruby
43
+ uses : ruby/setup-ruby@v1
44
+ with :
45
+ ruby-version : 3.3
46
+ bundler-cache : true
47
+
48
+ - name : Build site
49
+ run : bundle exec jekyll b -d "_site${{ steps.pages.outputs.base_path }}"
50
+ env :
51
+ JEKYLL_ENV : " production"
52
+
53
+ - name : Test site
54
+ run : |
55
+ bundle exec htmlproofer _site \
56
+ \-\-disable-external \
57
+ \-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
58
+
59
+ - name : Upload site artifact
60
+ uses : actions/upload-pages-artifact@v3
61
+ with :
62
+ path : " _site${{ steps.pages.outputs.base_path }}"
63
+
64
+ deploy :
65
+ environment :
66
+ name : github-pages
67
+ url : ${{ steps.deployment.outputs.page_url }}
68
+ runs-on : ubuntu-latest
69
+ needs : build
70
+ steps :
71
+ - name : Deploy to GitHub Pages
72
+ id : deployment
73
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments