From be059dbfd873e32e6e84a238d247d6a6fdcbc2ba Mon Sep 17 00:00:00 2001 From: Nathanael <36506137+NathanaelGandhi@users.noreply.github.com> Date: Sun, 1 May 2022 14:25:15 +1000 Subject: Enable snap build & publish for edge, beta, stable channels (#74) --- .github/workflows/builds.yml | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) (limited to '.github/workflows/builds.yml') diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 74ac7c1b9..3645f86da 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -258,42 +258,39 @@ jobs: env: GH_TOKEN: ${{ secrets.FERDIUM_PUBLISH_TOKEN }} CSC_IDENTITY_AUTO_DISCOVERY: false - # TODO: Commented out the snapcraft artifact publishing for now (need to setup the snapcraft login, etc) - # SNAPCRAFT_LOGIN: ${{ secrets.SNAPCRAFT_LOGIN }} + SNAPCRAFT_LOGIN: ${{ secrets.SNAPCRAFT_LOGIN }} run: | - # sudo snap install snapcraft --classic - # echo "$SNAPCRAFT_LOGIN" | snapcraft login --with - + sudo snap install snapcraft --classic + echo "$SNAPCRAFT_LOGIN" | snapcraft login --with - 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 - # snapcraft logout + -c.snap.publish.provider=snapStore -c.snap.publish.repo=nightlies -c.snap.publish.channels=edge + snapcraft logout shell: bash - name: Build Ferdium with publish for 'release' beta branch if: ${{ env.GIT_BRANCH_NAME == 'release' && contains(env.PACKAGE_VERSION, 'beta') }} env: GH_TOKEN: ${{ secrets.FERDIUM_PUBLISH_TOKEN }} CSC_IDENTITY_AUTO_DISCOVERY: false - # TODO: Commented out the snapcraft artifact publishing for now (need to setup the snapcraft login, etc) - # SNAPCRAFT_LOGIN: ${{ secrets.SNAPCRAFT_LOGIN }} + SNAPCRAFT_LOGIN: ${{ secrets.SNAPCRAFT_LOGIN }} run: | - # sudo snap install snapcraft --classic - # echo "$SNAPCRAFT_LOGIN" | snapcraft login --with - + sudo snap install snapcraft --classic + echo "$SNAPCRAFT_LOGIN" | snapcraft login --with - npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} - # -c.snap.publish.provider=snapStore -c.snap.publish.repo=ferdium -c.snap.publish.channels=beta - # snapcraft logout + -c.snap.publish.provider=snapStore -c.snap.publish.repo=ferdium -c.snap.publish.channels=beta + snapcraft logout shell: bash - name: Build Ferdium with publish for 'release' stable branch if: ${{ env.GIT_BRANCH_NAME == 'release' && !contains(env.PACKAGE_VERSION, 'beta') }} env: GH_TOKEN: ${{ secrets.FERDIUM_PUBLISH_TOKEN }} CSC_IDENTITY_AUTO_DISCOVERY: false - # TODO: Commented out the snapcraft artifact publishing for now (need to setup the snapcraft login, etc) - # SNAPCRAFT_LOGIN: ${{ secrets.SNAPCRAFT_LOGIN }} + SNAPCRAFT_LOGIN: ${{ secrets.SNAPCRAFT_LOGIN }} run: | - # sudo snap install snapcraft --classic - # echo "$SNAPCRAFT_LOGIN" | snapcraft login --with - + sudo snap install snapcraft --classic + echo "$SNAPCRAFT_LOGIN" | snapcraft login --with - npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} - # -c.snap.publish.provider=snapStore -c.snap.publish.repo=ferdium -c.snap.publish.channels=stable - # snapcraft logout + -c.snap.publish.provider=snapStore -c.snap.publish.repo=ferdium -c.snap.publish.channels=stable + snapcraft logout shell: bash build_windows: -- cgit v1.2.3-54-g00ecf