File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 9
9
env :
10
10
PAGES_ORGANIZATION : ${{ secrets.PAGES_ORGANIZATION }}
11
11
PAGES_REPOSITORY : ${{ secrets.PAGES_REPOSITORY }}
12
- PAGES_ACCESS_TOKEN : ${{ secrets.PAGES_ACCESS_TOKEN }}
13
12
14
13
jobs :
15
14
gh-pages :
@@ -23,14 +22,18 @@ jobs:
23
22
sudo gem install bundler
24
23
bundle install
25
24
25
+ - name : π default env
26
+ env :
27
+ PAGES_ORGANIZATION : ${{ secrets.PAGES_ORGANIZATION }}
28
+ PAGES_REPOSITORY : ${{ secrets.PAGES_REPOSITORY }}
29
+ run : |
30
+ echo "PAGES_ORGANIZATION=${PAGES_ORGANIZATION}" >> $GITHUB_ENV
31
+ echo "PAGES_REPOSITORY=${PAGES_REPOSITORY}" >> $GITHUB_ENV
32
+
26
33
- name : π default repo
27
- if : ${{ env.PAGES_REPOSITORY }} == ''
34
+ if : env.PAGES_REPOSITORY == ''
28
35
run : echo "PAGES_REPOSITORY=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
29
36
30
- - name : π default token
31
- if : env.PAGES_ACCESS_TOKEN == ''
32
- run : echo "PAGES_ACCESS_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
33
-
34
37
- name : π build
35
38
run : bundle exec jekyll build -b ${{ env.PAGES_REPOSITORY }}
36
39
env :
48
51
- name : π push
49
52
uses : ad-m/github-push-action@v0.6.0
50
53
with :
51
- github_token : ${{ env .PAGES_ACCESS_TOKEN }}
54
+ github_token : ${{ secrets .PAGES_ACCESS_TOKEN }}
52
55
repository : ${{ env.PAGES_ORGANIZATION }}/${{ env.PAGES_REPOSITORY }}
53
56
branch : gh-pages
54
57
force : true
You canβt perform that action at this time.
0 commit comments