Skip to content

Commit

Permalink
upload package to cloudsmith
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsgrill committed Jun 5, 2024
1 parent 35aa290 commit 36cea8d
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,17 @@ jobs:
path: "wscgo_${{ steps.dotenv.outputs.version }}-${{ steps.current-time.outputs.formattedTime }}_armhf.deb"

- name: Publish CI package
id: push
if: github.ref == 'refs/heads/master'
run: curl "-u${{ secrets.JFROG_ACCESS }}" -XPUT "https://balazsgrill.jfrog.io/artifactory/wscgo/pool/wscgo_${{ steps.dotenv.outputs.version }}-${{ steps.current-time.outputs.formattedTime }}_armhf.deb;deb.distribution=unstable;deb.component=main;deb.architecture=armhf" -T "wscgo_${{ steps.dotenv.outputs.version }}-${{ steps.current-time.outputs.formattedTime }}_armhf.deb"

- name: Publish CI package
if: startsWith(github.ref, 'refs/tags/v')
run: curl "-u${{ secrets.JFROG_ACCESS }}" -XPUT "https://balazsgrill.jfrog.io/artifactory/wscgo/pool/wscgo_${{ steps.dotenv.outputs.version }}-${{ steps.current-time.outputs.formattedTime }}_armhf.deb;deb.distribution=stable;deb.component=main;deb.architecture=armhf" -T "wscgo_${{ steps.dotenv.outputs.version }}-${{ steps.current-time.outputs.formattedTime }}_armhf.deb"
uses: cloudsmith-io/action@master
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
format: 'deb'
owner: 'home2mqtt'
repo: 'home2mqtt'
distro: 'unstable'
release: 'main'
republish: 'true'
file: "wscgo_${{ steps.dotenv.outputs.version }}-${{ steps.current-time.outputs.formattedTime }}_armhf.deb"

0 comments on commit 36cea8d

Please sign in to comment.