File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Generate web site
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ build :
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - name : Checkout
12+ uses : actions/checkout@v2
13+
14+ - name : Install cpanm
15+ run : |
16+ sudo apt-get update -y
17+ sudo apt-get install -y cpanminus
18+ - name : Install modules
19+ run : |
20+ sudo cpanm --installdeps --notest .
21+ sudo cpanm --notest App::CPANModuleSite
22+ - name : Create pages
23+ run : |
24+ mkdir -p docs
25+ mksite
26+ - name : Commit new page
27+ run : |
28+ GIT_STATUS=$(git status --porcelain)
29+ echo $GIT_STATUS
30+ git config --global user.name 'Dave Cross'
31+ git config --global user.email 'dave@perlschool.com'
32+ git add docs/
33+ if [ "$GIT_STATUS" != "" ]; then git commit -m "Web site generation"; fi
34+ if [ "$GIT_STATUS" != "" ]; then git push; fi
You can’t perform that action at this time.
0 commit comments