Skip to content

Commit 8cbddb1

Browse files
rem1776rem1776
andauthored
add release action to upload generated distribution file (#357)
* copy over yaml from other branch * some temporary build fixes to get it working * try autogenerating notes via actionwq * fix commands * add back in split_ncvars-p --------- Co-authored-by: rem1776 <Ryan.Mulhall@noaa.gov>
1 parent 6419378 commit 8cbddb1

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/release.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Create release draft with generated distribution file
2+
3+
on:
4+
push:
5+
tags:
6+
- 20*.*
7+
- 20*.*.*
8+
9+
jobs:
10+
create-release-dist:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
with:
16+
submodules: recursive
17+
- name: Install dependencies
18+
run: |
19+
sudo apt-get install -y nco which netcdf-bin libnetcdf-dev \
20+
libnetcdff-dev mpich gcc gfortran asciidoc docbook-xsl docbook-xml \
21+
python3 python3-numpy python3-pytest perl git make libtool autoconf
22+
- name: Configure
23+
run: |
24+
mkdir build && cd build
25+
autoreconf -if ../configure.ac
26+
../configure
27+
- name: Build and create distribution file
28+
run: |
29+
cd build
30+
make
31+
make distcheck
32+
make dist
33+
- name: Create release draft and upload file
34+
uses: softprops/action-gh-release@v2
35+
with:
36+
files: |
37+
build/fre-nctools-*.*.tar.gz
38+
build/fre-nctools-*.*.*.tar.gz
39+
draft: True
40+
generate_release_notes: True
41+
make_latest: True

0 commit comments

Comments
 (0)