aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/ferdi-builds.yml
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-24 10:22:22 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-08-24 10:22:22 +0530
commit2dc7b2fd3976853f3dc2f182f12cfe11c3b83688 (patch)
tree22fc7a9e4d3ddd2be16821c871259fb067c7df30 /.github/workflows/ferdi-builds.yml
parentdocs: upgraded version to 5.6.1-beta.1 (diff)
parent5.6.1-nightly.37 [skip ci] (diff)
downloadferdium-app-2dc7b2fd3976853f3dc2f182f12cfe11c3b83688.tar.gz
ferdium-app-2dc7b2fd3976853f3dc2f182f12cfe11c3b83688.tar.zst
ferdium-app-2dc7b2fd3976853f3dc2f182f12cfe11c3b83688.zip
Merge remote-tracking branch 'origin/develop' into release
Diffstat (limited to '.github/workflows/ferdi-builds.yml')
-rw-r--r--.github/workflows/ferdi-builds.yml14
1 files changed, 8 insertions, 6 deletions
diff --git a/.github/workflows/ferdi-builds.yml b/.github/workflows/ferdi-builds.yml
index d9627c816..7a701758e 100644
--- a/.github/workflows/ferdi-builds.yml
+++ b/.github/workflows/ferdi-builds.yml
@@ -190,7 +190,6 @@ jobs:
190 echo "ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder" >> $GITHUB_ENV 190 echo "ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder" >> $GITHUB_ENV
191 echo "MANUAL_REBUILD_ON_NIGHTLY=${{ github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]') }}" >> $GITHUB_ENV 191 echo "MANUAL_REBUILD_ON_NIGHTLY=${{ github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]') }}" >> $GITHUB_ENV
192 echo "SKIP_NOTARIZATION=${{ !contains(github.repository_owner, 'getferdi') }}" >> $GITHUB_ENV 192 echo "SKIP_NOTARIZATION=${{ !contains(github.repository_owner, 'getferdi') }}" >> $GITHUB_ENV
193 echo "PACKAGE_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
194 - 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 193 - 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
195 uses: actions/checkout@v2 194 uses: actions/checkout@v2
196 if: ${{ github.event_name == 'schedule' || env.MANUAL_REBUILD_ON_NIGHTLY == 'true' }} 195 if: ${{ github.event_name == 'schedule' || env.MANUAL_REBUILD_ON_NIGHTLY == 'true' }}
@@ -242,6 +241,9 @@ jobs:
242 run: npm cache clean --force 241 run: npm cache clean --force
243 - name: Install node dependencies recursively 242 - name: Install node dependencies recursively
244 run: npx lerna bootstrap 243 run: npx lerna bootstrap
244 - name: Figure out used package.json version
245 run: echo "PACKAGE_VERSION=$(node -p 'require("./package.json").version')" >> $GITHUB_ENV
246 shell: bash
245 - name: Package recipes 247 - name: Package recipes
246 run: npm i && npm run package 248 run: npm i && npm run package
247 working-directory: ./recipes 249 working-directory: ./recipes
@@ -260,10 +262,10 @@ jobs:
260 run: | 262 run: |
261 sudo snap install snapcraft --classic 263 sudo snap install snapcraft --classic
262 echo "$SNAPCRAFT_LOGIN" | snapcraft login --with - 264 echo "$SNAPCRAFT_LOGIN" | snapcraft login --with -
263 npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} -c.publish.repo=nightlies 265 npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} -c.publish.repo=nightlies -c.snap.publish.provider=snapStore -c.snap.publish.repo=nightlies -c.snap.publish.channels=edge
264 snapcraft logout 266 snapcraft logout
265 shell: bash 267 shell: bash
266 - name: Build Ferdi with publish for 'release' branch 268 - name: Build Ferdi with publish for 'release' beta branch
267 if: ${{ env.GIT_BRANCH_NAME == 'release' && contains(env.PACKAGE_VERSION, 'beta') }} 269 if: ${{ env.GIT_BRANCH_NAME == 'release' && contains(env.PACKAGE_VERSION, 'beta') }}
268 env: 270 env:
269 GH_TOKEN: ${{ secrets.FERDI_PUBLISH_TOKEN }} 271 GH_TOKEN: ${{ secrets.FERDI_PUBLISH_TOKEN }}
@@ -272,10 +274,10 @@ jobs:
272 run: | 274 run: |
273 sudo snap install snapcraft --classic 275 sudo snap install snapcraft --classic
274 echo "$SNAPCRAFT_LOGIN" | snapcraft login --with - 276 echo "$SNAPCRAFT_LOGIN" | snapcraft login --with -
275 npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} -c.publish.repo=ferdi -c.snap.publish.channels=beta 277 npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} -c.publish.repo=ferdi -c.snap.publish.provider=snapStore -c.snap.publish.repo=ferdi -c.snap.publish.channels=beta
276 snapcraft logout 278 snapcraft logout
277 shell: bash 279 shell: bash
278 - name: Build Ferdi with publish for 'release' branch 280 - name: Build Ferdi with publish for 'release' stable branch
279 if: ${{ env.GIT_BRANCH_NAME == 'release' && !contains(env.PACKAGE_VERSION, 'beta') }} 281 if: ${{ env.GIT_BRANCH_NAME == 'release' && !contains(env.PACKAGE_VERSION, 'beta') }}
280 env: 282 env:
281 GH_TOKEN: ${{ secrets.FERDI_PUBLISH_TOKEN }} 283 GH_TOKEN: ${{ secrets.FERDI_PUBLISH_TOKEN }}
@@ -284,7 +286,7 @@ jobs:
284 run: | 286 run: |
285 sudo snap install snapcraft --classic 287 sudo snap install snapcraft --classic
286 echo "$SNAPCRAFT_LOGIN" | snapcraft login --with - 288 echo "$SNAPCRAFT_LOGIN" | snapcraft login --with -
287 npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} -c.publish.repo=ferdi -c.snap.publish.channels=stable 289 npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} -c.publish.repo=ferdi -c.snap.publish.provider=snapStore -c.snap.publish.repo=ferdi -c.snap.publish.channels=stable
288 snapcraft logout 290 snapcraft logout
289 shell: bash 291 shell: bash
290 292