From 3cdcd19d14695d571e43ba8ba009ade92d94c959 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Fri, 22 Apr 2022 02:44:00 -0500 Subject: Turn on linux builds but still commented out snap publish --- .github/workflows/builds.yml | 83 +++++++++++++++++++++++--------------------- 1 file changed, 44 insertions(+), 39 deletions(-) diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 5a9ee79aa..b37e9008b 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -168,7 +168,7 @@ jobs: # CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} - name: Build Ferdium with publish for 'release' branch if: ${{ env.GIT_BRANCH_NAME == 'release' }} - run: npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} -c.publish.repo=ferdium + run: npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} shell: bash env: GH_TOKEN: ${{ secrets.FERDIUM_PUBLISH_TOKEN }} @@ -244,43 +244,48 @@ jobs: if: ${{ env.GIT_BRANCH_NAME != 'nightly' && env.GIT_BRANCH_NAME != 'release' }} run: npm run build -- --publish never shell: bash - # TODO: Commented out the snapcraft artifact publishing for now (need to setup the snapcraft login, etc) - # - name: Build Ferdium with publish for 'nightly' branch - # if: ${{ env.GIT_BRANCH_NAME == 'nightly' }} - # env: - # GH_TOKEN: ${{ secrets.FERDIUM_PUBLISH_TOKEN }} - # CSC_IDENTITY_AUTO_DISCOVERY: false - # SNAPCRAFT_LOGIN: ${{ secrets.SNAPCRAFT_LOGIN }} - # run: | - # 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 - # 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 - # SNAPCRAFT_LOGIN: ${{ secrets.SNAPCRAFT_LOGIN }} - # run: | - # 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.publish.repo=ferdium -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 - # SNAPCRAFT_LOGIN: ${{ secrets.SNAPCRAFT_LOGIN }} - # run: | - # 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.publish.repo=ferdium -c.snap.publish.provider=snapStore -c.snap.publish.repo=ferdium -c.snap.publish.channels=stable - # snapcraft logout - # shell: bash + - name: Build Ferdium with publish for 'nightly' branch + if: ${{ env.GIT_BRANCH_NAME == 'nightly' }} + 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 }} + run: | + # 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 + 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 }} + run: | + # 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 + 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 }} + run: | + # 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 + shell: bash build_windows: name: 'windows ${{ github.event.inputs.message }}' @@ -347,7 +352,7 @@ jobs: # WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }} - name: Build Ferdium with publish for 'release' branch if: ${{ env.GIT_BRANCH_NAME == 'release' }} - run: npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} -c.publish.repo=ferdium + run: npm run build -- --publish always -c.publish.provider=github -c.publish.owner=${{ github.repository_owner }} shell: bash env: GH_TOKEN: ${{ secrets.FERDIUM_PUBLISH_TOKEN }} -- cgit v1.2.3-70-g09d2