Repository navigation
69 lines (55 loc) · 2 KB
/
Copy pathweekly-release.yml
File metadata and controls
69 lines (55 loc) · 2 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Weekly Release
on:
schedule:
- cron: '0 18 * * 0'
workflow_dispatch:
permissions:
contents: write
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Make Gradle wrapper executable
run: chmod +x ./gradlew
- name: Compute weekly tag
id: meta
run: |
TAG="weekly-$(date -u +%G).W$(date -u +%V)"
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
echo "name=HyperZoneLogin $TAG" >> "$GITHUB_OUTPUT"
- name: Build plugin jars
run: ./gradlew clean build buildCtdDistributions -PreleaseChannel=WEEKLY
- name: Update weekly tag
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git tag -f "${{ steps.meta.outputs.tag }}"
git push origin "refs/tags/${{ steps.meta.outputs.tag }}" --force
- name: Publish weekly prerelease
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.meta.outputs.tag }}
name: ${{ steps.meta.outputs.name }}
prerelease: true
allowUpdates: true
artifactErrorsFailBuild: true
removeArtifacts: true
artifacts: |
build/HZL/*
build/HZL-ctd/*
body: |
This is an automatically generated weekly prerelease build for HyperZoneLogin.
Included artifacts are collected from `build/HZL/` and VelocityCTD artifacts are collected from `build/HZL-ctd/`.
If you encounter issues, please open an Issue and include environment, modules, logs, config snippets, and reproduction steps.
generateReleaseNotes: true