@@ -13,36 +13,63 @@ jobs:
13
13
runs-on : ubuntu-latest
14
14
steps :
15
15
16
- - name : Checkout source code
17
- uses : actions/checkout@v3
16
+ - uses : actions/checkout@v3
18
17
with :
19
18
submodules : recursive
20
19
21
- - name : Fetch the albert repo
22
- run : git clone --recursive --depth 1 https://github.com/albertlauncher/albert.git
20
+ - run : git clone --depth 1 https://github.com/albertlauncher/albert.git
23
21
24
- - name : Run doxygen
25
- uses :
mattnotmitt/[email protected]
22
+ -
uses :
mattnotmitt/[email protected]
26
23
27
- - name : Build site
28
- uses : actions/jekyll-build-pages@v1
24
+ - run : find .
25
+
26
+ # - run: make build
27
+
28
+ - uses : ruby/setup-ruby@v1
29
29
with :
30
- source : " src"
31
- destination : " src/_site"
30
+ ruby-version : ' 3.3' # Not needed with a `.ruby-version` or `.tool-versions`
31
+ bundler-cache : true # runs 'bundle install' and caches installed gems automatically
32
+ working-directory : ./src
33
+
34
+ # - run: gem install bundler
35
+
36
+ # - run: bundle install
37
+
38
+ - run : cd src && JEKYLL_ENV=production bundle exec jekyll build
32
39
33
40
- run : find .
41
+
42
+ # - uses: ruby/setup-ruby@v1
43
+ # with:
44
+ # ruby-version: '3.3'
45
+ # bundler-cache: true
46
+ #
47
+ # - run: bundle install
48
+ #
49
+ # - name: Build site
50
+ # uses: actions/jekyll-build-pages@v1
51
+ # with:
52
+ # source: "src"
53
+ # destination: "src/_site"
34
54
35
55
- name : Deploy
36
- run : |
37
- sudo chown -R runner:docker .
38
- mv html src/_site/reference
39
- cd src/_site
40
- git init
41
- git config --local user.email "[email protected] "
42
- git config --local user.name "GitHub Action"
43
- git add .
44
- git commit -m "Auto-commit from GitHub Action"
45
- git remote add origin "https://${{ secrets.PAT }}@github.com/albertlauncher/albertlauncher.github.io"
46
- git branch -M master
47
- git push --force origin master
56
+ uses : peaceiris/actions-gh-pages@v4
57
+ with :
58
+ personal_token : ${{ secrets.PAT }}
59
+ external_repository : albertlauncher/albertlauncher.github.io
60
+ publish_branch : master
61
+ publish_dir : ./src/_site
62
+
63
+ # - name: Deploy
64
+ # run: |
65
+ # sudo chown -R runner:docker .
66
+ # cd src/_site
67
+ # git init
68
+ # git config --local user.email "[email protected] "
69
+ # git config --local user.name "GitHub Action"
70
+ # git add .
71
+ # git commit -m "Auto-commit from GitHub Action"
72
+ # git remote add origin "https://${{ secrets.PAT }}@github.com/albertlauncher/albertlauncher.github.io"
73
+ # git branch -M master
74
+ # git push --force origin master
48
75
0 commit comments