aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-06-15 08:27:19 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-06-15 08:32:22 +0530
commit40d14fa9f5edd8eb71f697eb8fe412bd0cd35bfd (patch)
tree90d1b52b139d1f3b297880e9fdc38ae04d744c58 /.github
parentUpgraded some npm modules (#1525) (diff)
downloadferdium-app-40d14fa9f5edd8eb71f697eb8fe412bd0cd35bfd.tar.gz
ferdium-app-40d14fa9f5edd8eb71f697eb8fe412bd0cd35bfd.tar.zst
ferdium-app-40d14fa9f5edd8eb71f697eb8fe412bd0cd35bfd.zip
Skip notarization of the build artifact if not building for the main repo (ie building on a forked repo)..
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ferdi-builds.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.github/workflows/ferdi-builds.yml b/.github/workflows/ferdi-builds.yml
index fc87275c4..74defe01e 100644
--- a/.github/workflows/ferdi-builds.yml
+++ b/.github/workflows/ferdi-builds.yml
@@ -107,6 +107,7 @@ jobs:
107 echo "ELECTRON_CACHE=$HOME/.cache/electron" >> $GITHUB_ENV 107 echo "ELECTRON_CACHE=$HOME/.cache/electron" >> $GITHUB_ENV
108 echo "ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder" >> $GITHUB_ENV 108 echo "ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder" >> $GITHUB_ENV
109 echo "FORCE_REBUILD_ON_NIGHTLY=${{ contains(github.event.inputs.message, 'force build') && contains(github.event.inputs.message, 'nightly branch') }}" >> $GITHUB_ENV 109 echo "FORCE_REBUILD_ON_NIGHTLY=${{ contains(github.event.inputs.message, 'force build') && contains(github.event.inputs.message, 'nightly branch') }}" >> $GITHUB_ENV
110 echo "SKIP_NOTARIZATION=${{ !contains(github.repository_owner, 'getferdi') }}" >> $GITHUB_ENV
110 - name: Set env vars for Windows 111 - name: Set env vars for Windows
111 if: startsWith(runner.os, 'Windows') 112 if: startsWith(runner.os, 'Windows')
112 run: | 113 run: |
@@ -115,6 +116,7 @@ jobs:
115 echo "ELECTRON_CACHE=$USERPROFILE\.cache\electron" >> $GITHUB_ENV 116 echo "ELECTRON_CACHE=$USERPROFILE\.cache\electron" >> $GITHUB_ENV
116 echo "ELECTRON_BUILDER_CACHE=$USERPROFILE\.cache\electron-builder" >> $GITHUB_ENV 117 echo "ELECTRON_BUILDER_CACHE=$USERPROFILE\.cache\electron-builder" >> $GITHUB_ENV
117 echo "FORCE_REBUILD_ON_NIGHTLY=${{ contains(github.event.inputs.message, 'force build') && contains(github.event.inputs.message, 'nightly branch') }}" >> $GITHUB_ENV 118 echo "FORCE_REBUILD_ON_NIGHTLY=${{ contains(github.event.inputs.message, 'force build') && contains(github.event.inputs.message, 'nightly branch') }}" >> $GITHUB_ENV
119 echo "SKIP_NOTARIZATION=${{ !contains(github.repository_owner, 'getferdi') }}" >> $GITHUB_ENV
118 shell: bash 120 shell: bash
119 - name: Checkout code along with submodules for the 'nightly' branch if the trigger event is 'scheduled' or this is a forced rebuild on the nightly branch 121 - name: Checkout code along with submodules for the 'nightly' branch if the trigger event is 'scheduled' or this is a forced rebuild on the nightly branch
120 uses: actions/checkout@v2 122 uses: actions/checkout@v2