Skip to content

Commit 6cf3454

Browse files
authored
Merge pull request #387 from vithikashah001/vithikashah001-workflow
Combine release/tag workflow files
2 parents 4a11fd6 + fe48a72 commit 6cf3454

File tree

2 files changed

+34
-41
lines changed

2 files changed

+34
-41
lines changed

.github/workflows/release.yaml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/tag.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,37 @@ jobs:
2727
ref: `refs/tags/${title}`,
2828
sha: context.sha
2929
})
30+
create-release-dist:
31+
runs-on: ubuntu-latest
32+
needs: tag_release
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v4
36+
with:
37+
submodules: recursive
38+
- name: Install dependencies
39+
run: |
40+
sudo apt-get install -y nco which netcdf-bin libnetcdf-dev \
41+
libnetcdff-dev mpich gcc gfortran asciidoc docbook-xsl docbook-xml \
42+
python3 python3-numpy python3-pytest perl git make libtool autoconf
43+
- name: Configure
44+
run: |
45+
mkdir build && cd build
46+
autoreconf -if ../configure.ac
47+
../configure
48+
- name: Build and create distribution file
49+
run: |
50+
cd build
51+
make
52+
make distcheck
53+
make dist
54+
- name: Create release draft and upload file
55+
uses: softprops/action-gh-release@v2
56+
with:
57+
files: |
58+
build/fre-nctools-*.*.tar.gz
59+
build/fre-nctools-*.*.*.tar.gz
60+
draft: True
61+
generate_release_notes: True
62+
make_latest: True
63+

0 commit comments

Comments
 (0)