5
5
- main
6
6
- pages
7
7
8
+ env :
9
+ PAGES_ORGANIZATION : ${{ secrets.PAGES_ORGANIZATION }}
10
+ PAGES_REPOSITORY : ${{ secrets.PAGES_REPOSITORY }}
11
+ PAGES_ACCESS_TOKEN : ${{ secrets.PAGES_ACCESS_TOKEN }}
12
+
8
13
jobs :
9
14
gh-pages :
10
15
runs-on : ubuntu-latest
@@ -17,14 +22,14 @@ jobs:
17
22
sudo gem install bundler
18
23
bundle install
19
24
20
- - name : π default org
21
- if : env.PAGES_ORGANIZATION == ''
22
- run : echo "PAGES_ORGANIZATION=clarius" >> $GITHUB_ENV
23
-
24
25
- name : π default repo
25
- if : env.PAGES_REPOSITORY == ''
26
+ if : ${{ env.PAGES_REPOSITORY }} == ''
26
27
run : echo "PAGES_REPOSITORY=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
27
28
29
+ - name : π default token
30
+ if : env.PAGES_ACCESS_TOKEN == ''
31
+ run : echo "PAGES_ACCESS_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
32
+
28
33
- name : π build
29
34
run : bundle exec jekyll build -b ${{ env.PAGES_REPOSITORY }}
30
35
env :
@@ -35,14 +40,14 @@ jobs:
35
40
cd _site
36
41
git init
37
42
git add -A
38
- git config --local user.email "hello@clarius.org "
39
- git config --local user.name "GitHub Action "
43
+ git config --local user.email "bot@devlooped.com "
44
+ git config --local user.name "bot@devlooped.com "
40
45
git commit -m "Publish pages from ${GITHUB_REPOSITORY}@${GITHUB_SHA:0:9}"
41
46
42
47
- name : π push
43
48
uses : ad-m/github-push-action@v0.6.0
44
49
with :
45
- github_token : ${{ secrets .PAGES_ACCESS_TOKEN }}
50
+ github_token : ${{ env .PAGES_ACCESS_TOKEN }}
46
51
repository : ${{ env.PAGES_ORGANIZATION }}/${{ env.PAGES_REPOSITORY }}
47
52
branch : gh-pages
48
53
force : true
0 commit comments