Skip to content

Commit

Permalink
fix: CI publish snap
Browse files Browse the repository at this point in the history
  • Loading branch information
dusansimic committed Apr 2, 2024
1 parent d18bae0 commit 8295eaa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ jobs:
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
mac_certs: ${{ secrets.CSC_LINK }}
mac_certs_password: ${{ secrets.CSC_KEY_PASSWORD }}
- name: Cleanup tag
uses: mad9000/actions-find-and-replace-string@5
id: release_tag
with:
source: ${{ github.ref_name }}
find: v
replace: ''
- name: Upload to Snapcraft
if: startsWith(matrix.os, 'ubuntu')
uses: snapcore/action-publish@v1
with:
snap: dist/caprine_${{ steps.release_tag.outputs.value }}_amd64.snap
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.snapcraft_token }}
- name: Upload to Gemfury
Expand Down
8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,6 @@
"publish": [
{
"provider": "github"
},
{
"provider": "snapStore",
"channels": [
"stable"
]
}
]
},
Expand All @@ -189,4 +183,4 @@
"pre-push": "npm test"
}
}
}
}

0 comments on commit 8295eaa

Please sign in to comment.