diff options
author | Aditya Mangalampalli <aditya.mangalampalli@gmail.com> | 2022-04-15 02:00:25 -0700 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-04-16 21:57:57 +0530 |
commit | 210131ca184c3aa043371857c022aa1aa149efbf (patch) | |
tree | 6bc4e10a1540e55a66146c099bc468a12287425e /.github/workflows/builds.yml | |
parent | Update submodule url to ferdium-recipes (#1) (diff) | |
download | ferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.tar.gz ferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.tar.zst ferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.zip |
Matched casing for almost all replacements
Diffstat (limited to '.github/workflows/builds.yml')
-rw-r--r-- | .github/workflows/builds.yml | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index cfb03bce0..fa078924d 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml | |||
@@ -2,7 +2,7 @@ | |||
2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | 2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions |
3 | 3 | ||
4 | # Note: This workflow requires some secrets setup, and set on this repo with the names: | 4 | # Note: This workflow requires some secrets setup, and set on this repo with the names: |
5 | # 'FERDI_PUBLISH_TOKEN' (A GitHub Personal Access Token with appropriate permissions - for publishing the built artifacts) | 5 | # 'FERDIUM_PUBLISH_TOKEN' (A GitHub Personal Access Token with appropriate permissions - for publishing the built artifacts) |
6 | # 'APPLEID' (The username of your Apple developer account - for notarizing the mac artifacts) | 6 | # 'APPLEID' (The username of your Apple developer account - for notarizing the mac artifacts) |
7 | # 'APPLEID_PASSWORD' (An app-specific password - for notarizing the mac artifacts) | 7 | # 'APPLEID_PASSWORD' (An app-specific password - for notarizing the mac artifacts) |
8 | # 'CSC_LINK' (The HTTPS link or local path to certificate - for code signing of mac artifacts) | 8 | # 'CSC_LINK' (The HTTPS link or local path to certificate - for code signing of mac artifacts) |
@@ -46,7 +46,7 @@ jobs: | |||
46 | ref: nightly | 46 | ref: nightly |
47 | submodules: recursive | 47 | submodules: recursive |
48 | fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging | 48 | fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging |
49 | # ssh-key: ${{ secrets.FERDI_PUBLISH_TOKEN }} | 49 | # ssh-key: ${{ secrets.FERDIUM_PUBLISH_TOKEN }} |
50 | - name: Use Node.js specified in the '.nvmrc' file | 50 | - name: Use Node.js specified in the '.nvmrc' file |
51 | uses: actions/setup-node@v2 | 51 | uses: actions/setup-node@v2 |
52 | if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]')) }} | 52 | if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]')) }} |
@@ -105,7 +105,7 @@ jobs: | |||
105 | echo "ELECTRON_CACHE=$HOME/.cache/electron" >> $GITHUB_ENV | 105 | echo "ELECTRON_CACHE=$HOME/.cache/electron" >> $GITHUB_ENV |
106 | echo "ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder" >> $GITHUB_ENV | 106 | echo "ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder" >> $GITHUB_ENV |
107 | echo "MANUAL_REBUILD_ON_NIGHTLY=${{ github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]') }}" >> $GITHUB_ENV | 107 | echo "MANUAL_REBUILD_ON_NIGHTLY=${{ github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]') }}" >> $GITHUB_ENV |
108 | echo "SKIP_NOTARIZATION=${{ !contains(github.repository_owner, 'getferdi') }}" >> $GITHUB_ENV | 108 | echo "SKIP_NOTARIZATION=${{ !contains(github.repository_owner, 'ferdium') }}" >> $GITHUB_ENV |
109 | - 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 | 109 | - 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 |
110 | uses: actions/checkout@v2 | 110 | uses: actions/checkout@v2 |
111 | if: ${{ github.event_name == 'schedule' || env.MANUAL_REBUILD_ON_NIGHTLY == 'true' }} | 111 | if: ${{ github.event_name == 'schedule' || env.MANUAL_REBUILD_ON_NIGHTLY == 'true' }} |
@@ -149,26 +149,26 @@ jobs: | |||
149 | working-directory: ./recipes | 149 | working-directory: ./recipes |
150 | - name: Run linter and tests | 150 | - name: Run linter and tests |
151 | run: npm run lint && npm run test | 151 | run: npm run lint && npm run test |
152 | - name: Build Ferdi without publish for any branch not 'nightly' and not 'release' | 152 | - name: Build Ferdium without publish for any branch not 'nightly' and not 'release' |
153 | if: ${{ env.GIT_BRANCH_NAME != 'nightly' && env.GIT_BRANCH_NAME != 'release' }} | 153 | if: ${{ env.GIT_BRANCH_NAME != 'nightly' && env.GIT_BRANCH_NAME != 'release' }} |
154 | run: npm run build -- --publish never | 154 | run: npm run build -- --publish never |
155 | shell: bash | 155 | shell: bash |
156 | - name: Build Ferdi with publish for 'nightly' branch | 156 | - name: Build Ferdium with publish for 'nightly' branch |
157 | if: ${{ env.GIT_BRANCH_NAME == 'nightly' }} | 157 | if: ${{ env.GIT_BRANCH_NAME == 'nightly' }} |
158 | run: npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} | 158 | run: npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} |
159 | shell: bash | 159 | shell: bash |
160 | env: | 160 | env: |
161 | GH_TOKEN: ${{ secrets.FERDI_PUBLISH_TOKEN }} | 161 | GH_TOKEN: ${{ secrets.FERDIUM_PUBLISH_TOKEN }} |
162 | APPLEID: ${{ secrets.APPLEID }} | 162 | APPLEID: ${{ secrets.APPLEID }} |
163 | APPLEID_PASSWORD: ${{ secrets.APPLEID_PASSWORD }} | 163 | APPLEID_PASSWORD: ${{ secrets.APPLEID_PASSWORD }} |
164 | CSC_LINK: ${{ secrets.CSC_LINK }} | 164 | CSC_LINK: ${{ secrets.CSC_LINK }} |
165 | CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} | 165 | CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} |
166 | - name: Build Ferdi with publish for 'release' branch | 166 | - name: Build Ferdium with publish for 'release' branch |
167 | if: ${{ env.GIT_BRANCH_NAME == 'release' }} | 167 | if: ${{ env.GIT_BRANCH_NAME == 'release' }} |
168 | run: npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} -c.publish.repo=ferdi | 168 | run: npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} -c.publish.repo=ferdium |
169 | shell: bash | 169 | shell: bash |
170 | env: | 170 | env: |
171 | GH_TOKEN: ${{ secrets.FERDI_PUBLISH_TOKEN }} | 171 | GH_TOKEN: ${{ secrets.FERDIUM_PUBLISH_TOKEN }} |
172 | APPLEID: ${{ secrets.APPLEID }} | 172 | APPLEID: ${{ secrets.APPLEID }} |
173 | APPLEID_PASSWORD: ${{ secrets.APPLEID_PASSWORD }} | 173 | APPLEID_PASSWORD: ${{ secrets.APPLEID_PASSWORD }} |
174 | CSC_LINK: ${{ secrets.CSC_LINK }} | 174 | CSC_LINK: ${{ secrets.CSC_LINK }} |
@@ -187,7 +187,7 @@ jobs: | |||
187 | echo "ELECTRON_CACHE=$HOME/.cache/electron" >> $GITHUB_ENV | 187 | echo "ELECTRON_CACHE=$HOME/.cache/electron" >> $GITHUB_ENV |
188 | echo "ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder" >> $GITHUB_ENV | 188 | echo "ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder" >> $GITHUB_ENV |
189 | echo "MANUAL_REBUILD_ON_NIGHTLY=${{ github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]') }}" >> $GITHUB_ENV | 189 | echo "MANUAL_REBUILD_ON_NIGHTLY=${{ github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]') }}" >> $GITHUB_ENV |
190 | echo "SKIP_NOTARIZATION=${{ !contains(github.repository_owner, 'getferdi') }}" >> $GITHUB_ENV | 190 | echo "SKIP_NOTARIZATION=${{ !contains(github.repository_owner, 'ferdium') }}" >> $GITHUB_ENV |
191 | - 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 | 191 | - 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 |
192 | uses: actions/checkout@v2 | 192 | uses: actions/checkout@v2 |
193 | if: ${{ github.event_name == 'schedule' || env.MANUAL_REBUILD_ON_NIGHTLY == 'true' }} | 193 | if: ${{ github.event_name == 'schedule' || env.MANUAL_REBUILD_ON_NIGHTLY == 'true' }} |
@@ -234,14 +234,14 @@ jobs: | |||
234 | working-directory: ./recipes | 234 | working-directory: ./recipes |
235 | - name: Run linter and tests | 235 | - name: Run linter and tests |
236 | run: npm run lint && npm run test | 236 | run: npm run lint && npm run test |
237 | - name: Build Ferdi without publish for any branch not 'nightly' and not 'release' | 237 | - name: Build Ferdium without publish for any branch not 'nightly' and not 'release' |
238 | if: ${{ env.GIT_BRANCH_NAME != 'nightly' && env.GIT_BRANCH_NAME != 'release' }} | 238 | if: ${{ env.GIT_BRANCH_NAME != 'nightly' && env.GIT_BRANCH_NAME != 'release' }} |
239 | run: npm run build -- --publish never | 239 | run: npm run build -- --publish never |
240 | shell: bash | 240 | shell: bash |
241 | - name: Build Ferdi with publish for 'nightly' branch | 241 | - name: Build Ferdium with publish for 'nightly' branch |
242 | if: ${{ env.GIT_BRANCH_NAME == 'nightly' }} | 242 | if: ${{ env.GIT_BRANCH_NAME == 'nightly' }} |
243 | env: | 243 | env: |
244 | GH_TOKEN: ${{ secrets.FERDI_PUBLISH_TOKEN }} | 244 | GH_TOKEN: ${{ secrets.FERDIUM_PUBLISH_TOKEN }} |
245 | CSC_IDENTITY_AUTO_DISCOVERY: false | 245 | CSC_IDENTITY_AUTO_DISCOVERY: false |
246 | SNAPCRAFT_LOGIN: ${{ secrets.SNAPCRAFT_LOGIN }} | 246 | SNAPCRAFT_LOGIN: ${{ secrets.SNAPCRAFT_LOGIN }} |
247 | run: | | 247 | run: | |
@@ -250,28 +250,28 @@ jobs: | |||
250 | npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} -c.snap.publish.provider=snapStore -c.snap.publish.repo=nightlies -c.snap.publish.channels=edge | 250 | npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} -c.snap.publish.provider=snapStore -c.snap.publish.repo=nightlies -c.snap.publish.channels=edge |
251 | snapcraft logout | 251 | snapcraft logout |
252 | shell: bash | 252 | shell: bash |
253 | - name: Build Ferdi with publish for 'release' beta branch | 253 | - name: Build Ferdium with publish for 'release' beta branch |
254 | if: ${{ env.GIT_BRANCH_NAME == 'release' && contains(env.PACKAGE_VERSION, 'beta') }} | 254 | if: ${{ env.GIT_BRANCH_NAME == 'release' && contains(env.PACKAGE_VERSION, 'beta') }} |
255 | env: | 255 | env: |
256 | GH_TOKEN: ${{ secrets.FERDI_PUBLISH_TOKEN }} | 256 | GH_TOKEN: ${{ secrets.FERDIUM_PUBLISH_TOKEN }} |
257 | CSC_IDENTITY_AUTO_DISCOVERY: false | 257 | CSC_IDENTITY_AUTO_DISCOVERY: false |
258 | SNAPCRAFT_LOGIN: ${{ secrets.SNAPCRAFT_LOGIN }} | 258 | SNAPCRAFT_LOGIN: ${{ secrets.SNAPCRAFT_LOGIN }} |
259 | run: | | 259 | run: | |
260 | sudo snap install snapcraft --classic | 260 | sudo snap install snapcraft --classic |
261 | echo "$SNAPCRAFT_LOGIN" | snapcraft login --with - | 261 | echo "$SNAPCRAFT_LOGIN" | snapcraft login --with - |
262 | 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 | 262 | npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} -c.publish.repo=ferdium -c.snap.publish.provider=snapStore -c.snap.publish.repo=ferdium -c.snap.publish.channels=beta |
263 | snapcraft logout | 263 | snapcraft logout |
264 | shell: bash | 264 | shell: bash |
265 | - name: Build Ferdi with publish for 'release' stable branch | 265 | - name: Build Ferdium with publish for 'release' stable branch |
266 | if: ${{ env.GIT_BRANCH_NAME == 'release' && !contains(env.PACKAGE_VERSION, 'beta') }} | 266 | if: ${{ env.GIT_BRANCH_NAME == 'release' && !contains(env.PACKAGE_VERSION, 'beta') }} |
267 | env: | 267 | env: |
268 | GH_TOKEN: ${{ secrets.FERDI_PUBLISH_TOKEN }} | 268 | GH_TOKEN: ${{ secrets.FERDIUM_PUBLISH_TOKEN }} |
269 | CSC_IDENTITY_AUTO_DISCOVERY: false | 269 | CSC_IDENTITY_AUTO_DISCOVERY: false |
270 | SNAPCRAFT_LOGIN: ${{ secrets.SNAPCRAFT_LOGIN }} | 270 | SNAPCRAFT_LOGIN: ${{ secrets.SNAPCRAFT_LOGIN }} |
271 | run: | | 271 | run: | |
272 | sudo snap install snapcraft --classic | 272 | sudo snap install snapcraft --classic |
273 | echo "$SNAPCRAFT_LOGIN" | snapcraft login --with - | 273 | echo "$SNAPCRAFT_LOGIN" | snapcraft login --with - |
274 | 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 | 274 | npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} -c.publish.repo=ferdium -c.snap.publish.provider=snapStore -c.snap.publish.repo=ferdium -c.snap.publish.channels=stable |
275 | snapcraft logout | 275 | snapcraft logout |
276 | shell: bash | 276 | shell: bash |
277 | 277 | ||
@@ -285,7 +285,7 @@ jobs: | |||
285 | run: | | 285 | run: | |
286 | echo "HOME=$USERPROFILE" >> $GITHUB_ENV | 286 | echo "HOME=$USERPROFILE" >> $GITHUB_ENV |
287 | echo "MANUAL_REBUILD_ON_NIGHTLY=${{ github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]') }}" >> $GITHUB_ENV | 287 | echo "MANUAL_REBUILD_ON_NIGHTLY=${{ github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]') }}" >> $GITHUB_ENV |
288 | echo "SKIP_NOTARIZATION=${{ !contains(github.repository_owner, 'getferdi') }}" >> $GITHUB_ENV | 288 | echo "SKIP_NOTARIZATION=${{ !contains(github.repository_owner, 'ferdium') }}" >> $GITHUB_ENV |
289 | shell: bash | 289 | shell: bash |
290 | - 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 | 290 | - 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 |
291 | uses: actions/checkout@v2 | 291 | uses: actions/checkout@v2 |
@@ -325,23 +325,23 @@ jobs: | |||
325 | - name: Run linter and tests | 325 | - name: Run linter and tests |
326 | run: npm run lint && npm run test | 326 | run: npm run lint && npm run test |
327 | shell: bash | 327 | shell: bash |
328 | - name: Build Ferdi without publish for any branch not 'nightly' and not 'release' | 328 | - name: Build Ferdium without publish for any branch not 'nightly' and not 'release' |
329 | if: ${{ env.GIT_BRANCH_NAME != 'nightly' && env.GIT_BRANCH_NAME != 'release' }} | 329 | if: ${{ env.GIT_BRANCH_NAME != 'nightly' && env.GIT_BRANCH_NAME != 'release' }} |
330 | run: npm run build -- --publish never | 330 | run: npm run build -- --publish never |
331 | shell: bash | 331 | shell: bash |
332 | - name: Build Ferdi with publish for 'nightly' branch | 332 | - name: Build Ferdium with publish for 'nightly' branch |
333 | if: ${{ env.GIT_BRANCH_NAME == 'nightly' }} | 333 | if: ${{ env.GIT_BRANCH_NAME == 'nightly' }} |
334 | run: npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} | 334 | run: npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} |
335 | shell: bash | 335 | shell: bash |
336 | env: | 336 | env: |
337 | GH_TOKEN: ${{ secrets.FERDI_PUBLISH_TOKEN }} | 337 | GH_TOKEN: ${{ secrets.FERDIUM_PUBLISH_TOKEN }} |
338 | WIN_CSC_LINK: ${{ secrets.WIN_CSC_LINK }} | 338 | WIN_CSC_LINK: ${{ secrets.WIN_CSC_LINK }} |
339 | WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }} | 339 | WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }} |
340 | - name: Build Ferdi with publish for 'release' branch | 340 | - name: Build Ferdium with publish for 'release' branch |
341 | if: ${{ env.GIT_BRANCH_NAME == 'release' }} | 341 | if: ${{ env.GIT_BRANCH_NAME == 'release' }} |
342 | run: npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} -c.publish.repo=ferdi | 342 | run: npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} -c.publish.repo=ferdium |
343 | shell: bash | 343 | shell: bash |
344 | env: | 344 | env: |
345 | GH_TOKEN: ${{ secrets.FERDI_PUBLISH_TOKEN }} | 345 | GH_TOKEN: ${{ secrets.FERDIUM_PUBLISH_TOKEN }} |
346 | WIN_CSC_LINK: ${{ secrets.WIN_CSC_LINK }} | 346 | WIN_CSC_LINK: ${{ secrets.WIN_CSC_LINK }} |
347 | WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }} | 347 | WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }} |