Skip to content

Commit

Permalink
CI: add snap package publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
siwatanejo committed Mar 20, 2024
1 parent e737fea commit afe0fc5
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/CI.yml
Expand Up @@ -2,6 +2,9 @@ name: CI

on: [push, pull_request, workflow_dispatch]

env:
SNAPCRAFT_STORE_CREDENTIALS: ${{secrets.SNAPCRAFT_LOGIN}}

jobs:
build:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -126,3 +129,32 @@ jobs:
dotnet fantomas .
git diff --exit-code
publish_snap:
needs:
- run_snap
- integration_tests
- conventions

runs-on: ubuntu-22.04
steps:
- uses: actions/download-artifact@v3
name: Download artifact
with:
name: snap

- name: Unzip & upload snap
run: |
zip -r snap.zip .
- name: Install snapcraft
run: |
sudo snap install --classic snapcraft
- name: Log into snapcraft
run: |
snapcraft login
- name: Upload to SnapStore
run: |
snapcraft upload *.snap --release=beta

0 comments on commit afe0fc5

Please sign in to comment.