Skip to content

Merge pull request #13 from CanYing0913/v0.3 #88

Merge pull request #13 from CanYing0913/v0.3

Merge pull request #13 from CanYing0913/v0.3 #88

Workflow file for this run

name: Build and deploy installers
on:
push:
branches:
- master
paths-ignore:
- '.github/**'
- 'readme.md'
- '*.ipynb'
# - 'Fiji.app/**'
# - '**'
# pull_request:
# branches:
# - master
jobs:
Build-Windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: Setup conda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
channels: conda-forge, defaults
channel-priority: true
mamba-version: "*"
activate-environment: pipeline
- name: Install dependencies
run: |
mamba install -n pipeline -c conda-forge python=3.8 numpy=1.21 caiman pyimagej openjdk=8 seaborn pysimplegui
mamba install -n pipeline -y --no-channel-priority -c https://marcelotduarte.github.io/packages/conda cx_Freeze
- name: build installer Windows
shell: powershell
run: |
mkdir cache
python setup.py bdist_msi --target-name install.msi --target-version 0.1
- name: Release
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git checkout distribution
mv -Path dist/install.msi -Destination install.msi -Force
Remove-Item -Path dist -Recurse
Remove-Item -Path build -Recurse
git lfs install
git lfs track install.msi
git add .gitattributes
git add install.msi
git commit -m "Pushing new Windows installer"
- name: Push changes
uses: ad-m/github-push-action@master
with:
force: true
branch: distribution
Build-MacOS:
needs: Build-Windows
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: Setup conda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
channels: conda-forge, defaults
channel-priority: true
mamba-version: "*"
activate-environment: pipeline
- name: Install dependencies
run: |
mamba install -n pipeline -c conda-forge numpy=1.21 caiman pyimagej openjdk=8 seaborn pysimplegui
mamba install -n pipeline -y --no-channel-priority -c https://marcelotduarte.github.io/packages/conda cx_Freeze
- name: build disk file MacOS
shell: bash -l {0}
run: |
mkdir cache
python setup.py bdist_dmg --silent
mkdir dist
mv build/pipeline-0.1.dmg dist/install.dmg
- name: Commit files
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git checkout distribution
mv dist/install.dmg install.dmg
rm -r dist
rm -r build
git lfs install
git lfs track install.dmg
git add install.dmg
git add .gitattributes
git commit -m "Pushing new MacOS installer"
- name: Push changes
uses: ad-m/github-push-action@master
with:
force: true
branch: distribution