Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilb committed Sep 24, 2024
1 parent 29a99d4 commit 95f3165
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:

- name: Build & publish
# we want this to run only when on "push" to "master"
if: github.event_name == 'push' && github.ref == 'master'
if: github.ref == 'master' && github.event_name == 'push'
uses: ./actions/build_publish
with:
MAC_CERTIFICATE: ${{ secrets.MAC_CERTIFICATE }}
Expand Down
6 changes: 3 additions & 3 deletions actions/build_publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ runs:
steps:
- name: Build & publish windows production binaries
shell: bash
if: runner.os == 'Windows' && github.ref == 'master' && github.event_name == 'push'
if: runner.os == 'Windows'
run: $(yarn bin)/electron-builder --config.extraMetadata.environment=production --publish=always

- name: Build & publish mac production binaries
shell: bash
if: runner.os == 'macOS' && github.ref == 'master' && github.event_name == 'push'
if: runner.os == 'macOS'
run: |
source ./build/setup-mac-certificate.sh
$(yarn bin)/electron-builder --config.extraMetadata.environment=production --config.mac.bundleVersion=${{ github.ref }} --publish=always
Expand All @@ -25,7 +25,7 @@ runs:

- name: Build & publish linux production binaries
shell: bash
if: runner.os == 'Linux' && github.ref == 'master' && github.event_name == 'push'
if: runner.os == 'Linux'
run: |
sudo apt-get install -y rpm
yarn sedtoDeb; yarn build-release-publish && yarn sedtoAppImage && yarn build-release-publish && yarn sedtoDeb
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@
"files": [
"package.json",
"config/default.json",
"config/${env.production}.json",
"config/local-${env.production}.json",
"config/production.json",
"config/local-production.json",
"background.html",
"about.html",
"password.html",
Expand Down

0 comments on commit 95f3165

Please sign in to comment.