garrettmflynn is building a Mac release #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy — Mac | |
run-name: ${{ github.actor }} is building a Mac release | |
on: | |
push: | |
branches: ["main"] | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
deploy-on-mac: | |
runs-on: macos-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: commoners-starter-kit | |
environment-file: environment.yml | |
auto-activate-base: false | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- name: Install dependencies | |
run: npm install | |
# - uses: apple-actions/import-codesign-certs@v1 | |
# with: | |
# p12-file-base64: ${{ secrets.MACOS_CERTIFICATE }} | |
# p12-password: ${{ secrets.MACOS_CERTIFICATE_PWD }} | |
- name: Build and deploy on Mac | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
appleId: ${{ secrets.APPLE_ID }} | |
appleIdPassword: ${{ secrets.APPLE_PASSWORD }} | |
run: npm run build -- --target desktop --publish |