Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More resilient publish workflow options #3313

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 21 additions & 7 deletions .github/workflows/publish.yml
Expand Up @@ -35,12 +35,26 @@ jobs:

- name: Publish releases
env:
# These values are used for auto updates signing
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASS }}
CSC_LINK: ${{ secrets.CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
# This is used for uploading release assets to github
# These values are used to sign code for smoother installation and auto updates.
# Enabling them with wrong or unconfigured values will break your build
# see https://www.electron.build/code-signing.html
#
# APPLE_ID: ${{ secrets.APPLE_ID }}
# APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASS }}
# CSC_LINK: ${{ secrets.CSC_LINK }}
# CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}

# This is used for uploading release assets to github - GH provides it by default
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
npm exec electron-builder -- --publish always --win --mac --linux
if [ "$RUNNER_OS" == "Linux" ]; then
npm exec electron-builder -- --publish always --linux
elif [ "$RUNNER_OS" == "Windows" ]; then
npm exec electron-builder -- --publish always --win
elif [ "$RUNNER_OS" == "macOS" ]; then
npm exec electron-builder -- --publish always --mac
else
echo "$RUNNER_OS not supported"
exit 1
fi