File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - github
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout repository
14+ uses : actions/checkout@v2
15+
16+ - name : Set up JDK 11
17+ uses : actions/setup-java@v2
18+ with :
19+ distribution : ' adopt'
20+ java-version : ' 11'
21+
22+ - name : Build with Maven
23+ run : mvn clean install
24+
25+ - name : Deploy to GitHub Pages
26+ run : |
27+ mkdir -p out
28+ cp -r target/* out/
29+ cd out
30+ git init
31+ git config user.name "github-actions[bot]"
32+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
33+ git add .
34+ git commit -m "Deploy to GitHub Pages"
35+ git push --force "https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" master:github
You can’t perform that action at this time.
0 commit comments