Skip to content

Commit

Permalink
Update autobuild.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Litorom authored Jan 4, 2024
1 parent 48872dd commit f88d46b
Showing 1 changed file with 27 additions and 26 deletions.
53 changes: 27 additions & 26 deletions .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,37 @@
name: Nightly build
on:
schedule:
- cron: '0 0 * * *'
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
gradle:
strategy:
matrix:
os: [ ubuntu-latest ]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Change version name in build
run: |
sed -i -r "s/(?<=project\.version \= ')([\d\.]+)(?:-\w+)?(?=')/\1-dev%s/" build.gradle
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8

- name: Setup Gradle
uses: gradle/[email protected]

- name: Execute Gradle build
run: ./gradlew build

- uses: actions/[email protected]
with:
name: "Nightly release"
path: |
LICENSE
ChangeLog.md
build/libs/**.jar
if-no-files-found: error
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8

- name: Setup Gradle
uses: gradle/[email protected]

- name: Execute Gradle build
run: ./gradlew build

- uses: "dciborow/[email protected]"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Pre-release 2.2.0-dev%s (Nightly)"
generate_release_notes: true
files: |
LICENSE
ChangeLog.md
build/libs/**.jar

0 comments on commit f88d46b

Please sign in to comment.