Skip to content

Commit

Permalink
Push to snap store from GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
nsg committed Oct 5, 2023
1 parent 897021d commit 77e5542
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build-release-edge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build and release snap package to edge channel

on:
push:
branches:
- 'master'
paths-ignore:
- 'docs/**'
- '*.md'
- 'LICENSE'

workflow_dispatch:

jobs:
run:
name: Build, Test and Release Snap Package
runs-on: ubuntu-latest

services:
selenium:
image: selenium/standalone-chrome:latest
options: --shm-size=2gb
ports:
- 4444:4444

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Build snap package
uses: snapcore/action-build@v1

- name: TEST | Install package
run: sudo snap install --dangerous *.snap

- name: TEST | Install requirements
run: pip install -r tests/requirements.txt

- name: TEST | Run Selenium Tests
run: make ci -C tests

- name: Upload snap package to edge channel
uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
with:
snap: "*.snap"
channel: edge

0 comments on commit 77e5542

Please sign in to comment.