-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (40 loc) · 1.1 KB
/
jdemetra-latest-snapshot.yml
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
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 }}