Skip to content

Commit

Permalink
duplicate the snap github action to publish new humble track
Browse files Browse the repository at this point in the history
  • Loading branch information
MirkoFerrati committed Jul 13, 2023
1 parent bf35f73 commit 50d2a1d
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/snap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,40 @@ jobs:
with:
snap: ${{needs.build.outputs.snap-file}}
release: ${{ startsWith(github.ref, 'refs/tags/') && 'candidate' || 'edge'}}

build22:
runs-on: ubuntu-latest
outputs:
snap-file: ${{ steps.build-snap22.outputs.snap }}
steps:
- uses: actions/checkout@v2
with:
# full history for latest tag name
fetch-depth: 0
- uses: snapcore/action-build@v1
id: build-snap22

# Make sure the snap is installable
- run: |
sudo snap install --dangerous ${{ steps.build-snap22.outputs.snap }}
- uses: actions/upload-artifact@v3
with:
name: plotjuggler-snap22
path: ${{ steps.build-snap22.outputs.snap }}

publish22:
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: build22
steps:
- uses: actions/download-artifact@v3
with:
name: plotjuggler-snap22
path: .
- uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
with:
snap: ${{needs.build.outputs.snap-file}}
release: humble/${{ startsWith(github.ref, 'refs/tags/') && 'candidate' || 'edge'}}

0 comments on commit 50d2a1d

Please sign in to comment.