Nightly Deployer of Weekly Builds #93
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nightly Deployer of Weekly Builds | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 5 * * 1' # every monday morning | |
permissions: | |
contents: write | |
id-token: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
# weigl: Should produce fancier release notes, but needs some configuration | |
# # https://github.com/marketplace/actions/release-changelog-builder | |
# - name: "Build Changelog" | |
# id: build_changelog | |
# uses: mikepenz/release-changelog-builder-action@v3.7.0 | |
# with: | |
# ignorePreReleases: true | |
# fetchReviewers: true | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4.1.0 | |
- name: Build with Gradle | |
run: ./gradlew --parallel assemble | |
- name: Delete previous nightly release | |
continue-on-error: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh release delete nightly --yes --cleanup-tag | |
- name: Create nightly release | |
id: create_release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh release create --generate-notes --title "Nightly Release" \ | |
--prerelease \ | |
nightly key.ui/build/libs/key-*-exe.jar |