diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ba6aa06c73..ddec07df0f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -57,20 +57,24 @@ jobs: build_script_name: empty github_token: ${{ secrets.github_token }} release: ${{ startsWith(github.ref, 'refs/tags/v') }} + env: + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} - # DISABLED until working again -# - name: Install Snapcraft -# uses: samuelmeuli/action-snapcraft@v1 -# with: -# # Log in to Snap Store -# snapcraft_token: ${{ secrets.snapcraft_token }} -# # rename to possibly fix release issue -# - run: find ./app-builds -type f -name '*.snap' -exec sh -c 'x="{}"; mv "$x" "app-builds/sp.snap"' \; -# # Release to edge if no tag and to candidate if tag -# - run: snapcraft push app-builds/sp.snap --release edge -# if: false == startsWith(github.ref, 'refs/tags/v') -# - run: snapcraft push app-builds/sp.snap --release candidate -# if: startsWith(github.ref, 'refs/tags/v') + - name: Install Snapcraft + uses: samuelmeuli/action-snapcraft@v1 + env: + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} + # rename to possibly fix release issue + - run: find ./app-builds -type f -name '*.snap' -exec sh -c 'x="{}"; mv "$x" "app-builds/sp.snap"' \; + # Release to edge if no tag and to candidate if tag + - run: snapcraft push app-builds/sp.snap --release edge + if: false == startsWith(github.ref, 'refs/tags/v') + env: + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} + - run: snapcraft push app-builds/sp.snap --release candidate + if: startsWith(github.ref, 'refs/tags/v') + env: + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} mac-bin: runs-on: macos-latest