From feee61ba05741e813d8ad2cd190786c54d134a6a Mon Sep 17 00:00:00 2001 From: krzywon Date: Tue, 28 Apr 2026 14:43:03 -0400 Subject: [PATCH 1/2] First attempt at an action to attach binaries to releases when a tag is generated --- .github/workflows/release.yml | 59 +++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000000..41852c7fea --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,59 @@ +name: release.yml +on: + release +jobs: + + #Reuse ci.yml workflow on main branch and upload artifacts to release page + reuse_main_ci: + uses: ./.github/workflows/ci.yml + secrets: inherit + + upload_nightly_builds: + + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + needs: reuse_main_ci + + env: + GH_REPO: ${{ github.repository }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + steps: + - name: Retrieve saved artifacts + uses: actions/download-artifact@v8 + + - name: Display structure of downloaded files + run: ls -R + working-directory: . + + - name: Copy wheel + run: | + mv build-dependency-*-wheel/*.whl ./ + + - name: Rename artifacts + run: | + mv SasView-Installer-windows*/setupSasView.exe ./SasView-${{ github.event.release.tag_name }}-Win64.exe + mv SasView-Installer-macos*/SasView6-*.dmg ./SasView-${{ github.event.release.tag_name }}-*.dmg + for file in $(ls *.dmg); do + mv $file ${file/SasView6-/SasView-nightly-MacOSX-} + done + mv SasView-Installer-ubuntu*/SasView6.tar.gz ./SasView-${{ github.event.release.tag_name }}-Ubuntu22.04.tar.gz + + - name: Clean out old release + run: | + gh release delete nightly-build --cleanup-tag --yes || true + + - name: Upload Nightly Build Installer to GitHub releases + uses: ncipollo/release-action@v1 + with: + allowUpdates: true + replacesArtifacts: true + omitBodyDuringUpdate: true + omitDraftDuringUpdate: true + omitNameDuringUpdate: true + omitPrereleaseDuringUpdate: true + token: ${{ secrets.GITHUB_TOKEN }} + artifacts: "*.exe, *.dmg, *.tar.gz, *.whl" + tag: ${{ github.event.release.tag_name }} From 8b25b97c11c248abd8f8d1610806b4c1c70dd407 Mon Sep 17 00:00:00 2001 From: krzywon Date: Wed, 29 Apr 2026 08:29:46 -0400 Subject: [PATCH 2/2] Remove nightly build cleanout step from the release.yml --- .github/workflows/release.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 41852c7fea..7694c864e1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,10 +41,6 @@ jobs: done mv SasView-Installer-ubuntu*/SasView6.tar.gz ./SasView-${{ github.event.release.tag_name }}-Ubuntu22.04.tar.gz - - name: Clean out old release - run: | - gh release delete nightly-build --cleanup-tag --yes || true - - name: Upload Nightly Build Installer to GitHub releases uses: ncipollo/release-action@v1 with: