File tree Expand file tree Collapse file tree 4 files changed +23
-30
lines changed Expand file tree Collapse file tree 4 files changed +23
-30
lines changed Original file line number Diff line number Diff line change 7
7
schedule :
8
8
- cron : ' 0 0 * * *'
9
9
10
+ permissions :
11
+ contents : read
12
+ pages : write
13
+ id-token : write
14
+
10
15
jobs :
11
16
build-and-deploy :
12
17
runs-on : ubuntu-latest
13
18
steps :
14
- - uses : actions/checkout@v2
15
- - name : Install JDK 11
16
- uses : AdoptOpenJDK/install-jdk@v1
19
+ - uses : actions/checkout@v4
20
+ - uses : actions/setup-java@v4
17
21
with :
18
- version : 11
22
+ distribution : ' temurin'
23
+ java-version : ' 11'
19
24
- name : Run builds
20
25
run : ./.run.builds.sh
21
26
- name : Setup Ruby
22
- uses : actions/setup-ruby@v1
23
- with :
24
- ruby-version : ' 2.6'
25
- - uses : actions/checkout@v2
27
+ uses : ruby/setup-ruby@v1
26
28
with :
27
- ref : " gh-pages"
28
- path : " _gh_pages"
29
+ ruby-version : ' 3.2.1'
29
30
- name : Run Jekyll and deploy
30
31
run : ./.run.jekyll.sh
32
+ - name : Setup Pages
33
+ uses : actions/configure-pages@v3
34
+ - name : Upload GitHub Pages artifact
35
+ uses : actions/upload-pages-artifact@v3
36
+ with :
37
+ path : ./_site/
38
+ - name : Deploy to GitHub Pages
39
+ id : deployment
40
+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 1
- # /usr/bin/env bash
1
+ #! /usr/bin/env bash
2
2
set -e
3
3
4
4
./mvnw clean install
Original file line number Diff line number Diff line change @@ -6,21 +6,4 @@ gem install bundler
6
6
bundle install
7
7
bundle exec jekyll build
8
8
9
- echo " ⚙️ Copying the files"
10
- rm -rf _gh_pages/*
11
- cp -R _site/* _gh_pages/
12
- # include sources as they are linked from the howto
13
- cp -R src _gh_pages/
14
- cp pom.xml _gh_pages/
15
- # sometimes jekyll doesn't rename to index
16
- mv _gh_pages/README.html _gh_pages/index.html || true
17
-
18
- echo " 🚀 Commit and push"
19
- cd _gh_pages || exit
20
- git config --global user.email " howtos@vertx.io"
21
- git config --global user.name " Vert.x howtos"
22
- git add -A
23
- git commit -m " Deploy the how-to pages"
24
- git push origin gh-pages
25
-
26
9
echo " ✅ Done"
Original file line number Diff line number Diff line change 1
1
source "https://rubygems.org"
2
2
3
- gem "jekyll" , "~> 3.8.5"
3
+ gem "jekyll" , "~> 3"
4
+ gem "webrick"
4
5
5
6
group :jekyll_plugins do
6
- gem 'asciidoctor'
7
7
gem 'jekyll-asciidoc'
8
8
end
9
9
You can’t perform that action at this time.
0 commit comments