This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
Update release.yml #3
Workflow file for this run
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: Create Release | |
on: | |
push: | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: maven | |
- name: Configure application-prod.properties | |
run: | | |
python -c "import os; file = open('src/main/resources/application-prod.properties', 'w'); file.write(os.environ['APPLICATION_PROD_PROPERTIES']); file.close()" | |
env: | |
APPLICATION_PROD_PROPERTIES : ${{secrets.APPLICATION_PROD_PROPERTIES}} | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml -Pprod | |
# TODO: create an installer or a zip or something | |
# TODO: use the zip or something, don't use the jar | |
- uses: ncipollo/[email protected] | |
with: | |
artifacts: "target/*.jar" | |
draft: true | |
generateReleaseNotes: true |