Skip to content

Commit

Permalink
Merge pull request #3021 from MirServer/try-remote-build
Browse files Browse the repository at this point in the history
snap: try `remote-build` instead
  • Loading branch information
RAOF authored Aug 29, 2023
2 parents 0aa77c2 + b00153e commit e4bc180
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/snap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ jobs:
fetch-depth: 0 # needed for version determination

- name: Build and publish the snap
uses: canonical/actions/build-snap@multiarch
uses: canonical/actions/build-snap@remote-build
with:
architecture: ${{ matrix.architecture }}
snapcraft-token: ${{ secrets.SNAPCRAFT_TOKEN }}
launchpad-credentials: ${{ secrets.LAUNCHPAD_CREDENTIALS }}
launchpad-accept-public-upload: true
publish: ${{ github.event_name == 'pull_request' && github.repository == github.event.pull_request.head.repo.full_name }}
publish-channel: 22/edge/pr${{ github.event.number }}

Expand Down Expand Up @@ -68,6 +70,7 @@ jobs:
- snap: Miriway/Miriway
track: latest
review-opts: --allow-classic
snapcraft-channel: edge

steps:
- name: Check out code
Expand All @@ -82,10 +85,13 @@ jobs:
sed -i 's@- mir-libs.*$@\0/pr${{ github.event.number }}@' snap/snapcraft.yaml
- name: Build and publish the snap
uses: canonical/actions/build-snap@multiarch
uses: canonical/actions/build-snap@remote-build
with:
architecture: ${{ matrix.architecture }}
review-opts: ${{ matrix.review-opts }}
snapcraft-token: ${{ secrets.SNAPCRAFT_TOKEN }}
launchpad-credentials: ${{ secrets.LAUNCHPAD_CREDENTIALS }}
launchpad-accept-public-upload: true
publish: true
publish-channel: ${{ matrix.track }}/edge/mir-pr${{ github.event.number }}
snapcraft-channel: ${{ matrix.snapcraft-channel || 'stable' }}

0 comments on commit e4bc180

Please sign in to comment.