Skip to content

Nightly Deployer of Weekly Builds #61

Nightly Deployer of Weekly Builds

Nightly Deployer of Weekly Builds #61

Workflow file for this run

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/[email protected]
# 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/[email protected]
- 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