Skip to content

Merge pull request #2764 from SasView/2763-remove-unused-dependencies #126

Merge pull request #2764 from SasView/2763-remove-unused-dependencies

Merge pull request #2764 from SasView/2763-remove-unused-dependencies #126

Workflow file for this run

name: Nightly Build
on:
push:
branches:
- main
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_nighly_builds:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest]
python-version: [ 3.11 ]
needs: reuse_main_ci
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Retrieve saved artifacts
uses: actions/download-artifact@v3
with:
path: installers/dist
- name: Display structure of downloaded files
run: ls -R
working-directory: installers/dist
- name: Rename remaining artifacts artifacts
run: |
mv installers/dist/SasView-Installer-windows-*/setupSasView.exe installers/dist/setupSasView-nightly-Win64.exe
mv installers/dist/SasView-Installer-macos-*/SasView6.dmg installers/dist/SasView-nightly-MacOSX.dmg
mv installers/dist/SasView-Installer-ubuntu-*/sasview6.tar.gz installers/dist/SasView-nightly-Linux.tar.gz
- name: Notarize Release Build (OSX)
uses: lando/notarize-action@v2
with:
product-path: "installers/dist/SasView-nightly-MacOSX.dmg"
primary-bundle-id: "org.sasview.SasView6"
appstore-connect-username: ${{ secrets.NOTARIZATION_USERNAME }}
appstore-connect-password: ${{ secrets.NOTARIZATION_PASSWORD }}
appstore-connect-team-id: W2AG9MPZ43
verbose: True
- name: Staple Release Build (OSX)
uses: BoundfoxStudios/action-xcode-staple@v1
with:
product-path: "installers/dist/SasView-nightly-MacOSX.dmg"
- name: Upload Nightly Build Installer to GitHub releases
uses: ncipollo/release-action@v1
with:
draft: false
prerelease: true
allowUpdates: true
replacesArtifacts: true
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "installers/dist/setupSasView-nightly-Win64.exe, installers/dist/SasView-nightly-MacOSX.dmg, installers/dist/SasView-nightly-Linux.tar.gz"
body: "Nightly build of main SasView branch"
name: "nightly-build"
tag: "nightly-build"