Skip to content

Commit

Permalink
Create snapcraft-myip.yml from workflow template
Browse files Browse the repository at this point in the history
  • Loading branch information
abitrolly committed Jun 23, 2023
1 parent cc81b98 commit b77b09f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/snapcraft-myip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Build default branch and PRs, publish only from default.
# Needs `STORE_LOGIN` configured https://github.com/snapcore/action-publish#store-login
# Change channel from default `edge` if needed.

name: Build and pubish snap package

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: build
uses: snapcore/action-build@v1
with:
path: snapcrafting/myip
- id: publish
if: github.ref == format('refs/heads/{0}', "master")
uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
with:
snap: ${{ steps.build.outputs.snap }}
release: stable

0 comments on commit b77b09f

Please sign in to comment.