Skip to content

Commit 36a1982

Browse files
authored
Define basic GitHub Actions release job (#57)
1 parent 73b7d8d commit 36a1982

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: release
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
java: [ '8' ]
11+
architecture: [ 'x64' ]
12+
name: Build with JDK ${{ matrix.java }} on ${{ matrix.architecture }}
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Setup JDK
16+
uses: actions/setup-java@v4
17+
with:
18+
distribution: 'temurin'
19+
java-version: ${{ matrix.java }}
20+
architecture: ${{ matrix.architecture }}
21+
cache: 'gradle'
22+
23+
- name: Build with Gradle
24+
run: ./gradlew asciidoc
25+
26+
- name: GitHub Pages Publish
27+
run: ./gradlew publishGhPages
28+
env:
29+
GITHUB_USER: ${{ secrets.GH_DEPLOY_USER }}
30+
GITHUB_TOKEN: ${{ secrets.GH_DEPLOY_TOKEN }}

0 commit comments

Comments
 (0)