Merge pull request #1623 from Karry/hillshade-overlay #301
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: Release Latest | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- '.github/workflows/**' | |
workflow_dispatch: | |
env: | |
JAVA_VERSION: '17' | |
JAVA_DISTRO: 'zulu' | |
jobs: | |
create_latest_release: | |
name: Create latest release | |
runs-on: ubuntu-22.04 | |
if: github.ref == 'refs/heads/master' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install gcc compiler and Co | |
run: sudo apt-get -y install gcc-12 g++-12 libtbb-dev ccache libtool pkg-config | |
- name: Install meson and ninja via pip | |
run: "pip install meson ninja" | |
- name: "Define version based on current year" | |
run: | | |
echo "VERSION=$(date +%Y.%m.%d).1-latest" >> $GITHUB_OUTPUT | |
id: version | |
- name: Set version locally to 'latest' | |
run: | | |
sed -i "s/^ *version: *'[0-9a-z.-]*', *$/ version: '$(date +%Y.%m.%d).1-latest',/g" meson.build | |
- name: Initialize meson project | |
run: meson setup dist --wrap-mode nofallback | |
env: | |
CXX: g++-12 | |
CC: gcc-12 | |
- name: Create distribution archive | |
run: meson dist -C dist --formats "xztar,zip" --no-tests --allow-dirty | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ env.JAVA_VERSION }} | |
distribution: ${{ env.JAVA_DISTRO }} | |
- name: JReleaser full-release | |
uses: jreleaser/release-action@v2 | |
env: | |
JRELEASER_PROJECT_VERSION: ${{ steps.version.outputs.VERSION }} | |
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: JReleaser upload output | |
uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: jreleaser-release | |
path: | | |
out/jreleaser/trace.log | |
out/jreleaser/output.properties |