-
Notifications
You must be signed in to change notification settings - Fork 27
52 lines (44 loc) · 1.42 KB
/
nightlydeploy.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
42
43
44
45
46
47
48
49
50
51
52
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