From 5f70263c0e12d5c7430d87027c354b4d1cb0e863 Mon Sep 17 00:00:00 2001 From: Ryan Mulhall <35538242+rem1776@users.noreply.github.com> Date: Thu, 13 Feb 2025 16:33:58 -0500 Subject: [PATCH 1/2] Create release.yaml --- .github/workflows/release.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..61abbf07 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,30 @@ +name: Create Release files and tag +on: push + #push: + # tags: + # - 20*.* # TODO update this in 75 years + # - 20*.*.* +jobs: + create-release: + runs-on: ubuntu-latest + container: + image: ghcr.io/noaa-gfdl/fre-nctools-ci-rocky-gnu:14.2.0_v2 + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + - name: Configure + run: | + mkdir build && cd build + autoreconf -i ../configure.ac + ../configure + - name: Build and create distribution + run: | + make distcheck + make dist + - name: Upload to Release Action + uses: Shopify/upload-to-release@v2.0.0 + with: + name: test-upload + path: build/fre-nctools-2024.05.tar.gz From de913942e17ea65104d2fcd1614ba3b503e02fb8 Mon Sep 17 00:00:00 2001 From: Ryan Mulhall <35538242+rem1776@users.noreply.github.com> Date: Thu, 13 Feb 2025 16:59:03 -0500 Subject: [PATCH 2/2] Update release.yaml --- .github/workflows/release.yaml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 61abbf07..8820dfab 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,11 +1,12 @@ -name: Create Release files and tag -on: push - #push: - # tags: - # - 20*.* # TODO update this in 75 years - # - 20*.*.* +name: Create Release draft and upload dist +on: + push: + tags: + - 20*.* # TODO update in 75 years + - 20*.*.* + jobs: - create-release: + create-release-dist: runs-on: ubuntu-latest container: image: ghcr.io/noaa-gfdl/fre-nctools-ci-rocky-gnu:14.2.0_v2 @@ -21,10 +22,13 @@ jobs: ../configure - name: Build and create distribution run: | + cd build make distcheck make dist - - name: Upload to Release Action - uses: Shopify/upload-to-release@v2.0.0 + - name: Create release draft and upload dist files + uses: softprops/action-gh-release@v2 with: - name: test-upload - path: build/fre-nctools-2024.05.tar.gz + files: | + build/fre-nctools-*.*.tar.gz + build/fre-nctools-*.*.*.tar.gz + draft: True