Skip to content

JDemetra+ v3 latest snapshot #1013

JDemetra+ v3 latest snapshot

JDemetra+ v3 latest snapshot #1013

name: JDemetra+ v3 latest snapshot
on:
push:
workflow_dispatch:
schedule:
- cron: '0 2 * * *' # run at 2 AM UTC
jobs:
snapshot-job:
if: startsWith(github.repository, 'nbbrd/') && startsWith(github.ref, 'refs/heads/main')
strategy:
matrix:
java: [ 21 ]
os: [ ubuntu-latest ]
name: Snapshot on main
runs-on: ${{ matrix.os }}
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Create assets
run: |
mvn -B -ntp clean package
- name: Create release and upload assets
uses: ncipollo/release-action@v1
with:
name: ${{ github.workflow }}
bodyFile: 'README.md'
allowUpdates: true
tag: 'latest'
removeArtifacts: true
artifacts: './target/upload/*'
token: ${{ secrets.GITHUB_TOKEN }}