Skip to content

Dispatch editDocumentWKTReceived event after WKT value is available w… #69

Dispatch editDocumentWKTReceived event after WKT value is available w…

Dispatch editDocumentWKTReceived event after WKT value is available w… #69

name: build-latest-nunaliit-release
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build-nunaliit-and-release:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/[email protected]
with:
java-version: '11.0.12'
distribution: 'temurin'
cache: 'maven'
- name: Build Nunaliit with Maven
run: mvn clean install
- name: Get latest tag across all branches
run: |
git fetch --tags
echo "LATEST_TAG=$(git describe --tags $(git rev-list --branches=master --tags --max-count=1))" >> $GITHUB_ENV
- name: Create release with GitHub CLI
run: |
gh release delete $LATEST_TAG --yes
gh release create $LATEST_TAG nunaliit2-couch-sdk/target/*.tar.gz nunaliit2-couch-sdk/target/*.zip --generate-notes --latest --target master --verify-tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}