-
Notifications
You must be signed in to change notification settings - Fork 8
41 lines (34 loc) · 1.06 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build & Deploy
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
# Skip on release, but run after the release when bumping to the next SNAPSHOT version
if: |
!startsWith(github.event.head_commit.message, 'chore(main): release') || contains(github.event.head_commit.message, 'SNAPSHOT')
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/gradlew
id: gradlew
- name: Deploy to Github Pages
if: success()
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: gh-pages
build_dir: build/web
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update nightly release
if: success()
uses: pyTooling/Actions/releaser@main
with:
tag: nightly
rm: true
token: ${{ secrets.GITHUB_TOKEN }}
files: ${{ steps.gradlew.outputs.jar_file }}
- name: Publish package
run: ./gradlew publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}