-
Notifications
You must be signed in to change notification settings - Fork 46
41 lines (39 loc) · 1.07 KB
/
release.yaml
File metadata and controls
41 lines (39 loc) · 1.07 KB
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
name: Create release draft with generated distribution file
on:
push:
tags:
- 20*.*
- 20*.*.*
jobs:
create-release-dist:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get install -y nco which netcdf-bin libnetcdf-dev \
libnetcdff-dev mpich gcc gfortran asciidoc docbook-xsl docbook-xml \
python3 python3-numpy python3-pytest perl git make libtool autoconf
- name: Configure
run: |
mkdir build && cd build
autoreconf -if ../configure.ac
../configure
- name: Build and create distribution file
run: |
cd build
make
make distcheck
make dist
- name: Create release draft and upload file
uses: softprops/action-gh-release@v2
with:
files: |
build/fre-nctools-*.*.tar.gz
build/fre-nctools-*.*.*.tar.gz
draft: True
generate_release_notes: True
make_latest: True