Skip to content

Commit

Permalink
Fix packagecloud deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
royroyee committed Dec 22, 2023
1 parent 73a494c commit c7d59fa
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,26 +43,36 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}

- name: Upload Artifacts
uses: actions/upload-artifact@v2
- name: Upload AMD64 DEB artifacts
uses: actions/upload-artifact@v3
with:
name: packages
path: dist/*
name: alpacon_${{ github.ref_name }}_linux_amd64.deb
path: dist/alpacon_${{ github.ref_name }}_linux_amd64.deb

- name: Upload AMD64 RPM artifacts
uses: actions/upload-artifact@v3
with:
name: alpacon_${{ github.ref_name }}_linux_amd64.rpm
path: dist/alpacon_${{ github.ref_name }}_linux_amd64.rpm

packagecloud-deploy:
needs: goreleaser
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
- name: Download AMD64 DEB Artifacts
uses: actions/download-artifact@v3
with:
name: alpacon_${{ github.ref_name }}_linux_amd64.deb

- name: Download AMD64 RPM Artifacts
uses: actions/download-artifact@v3
with:
name: packages
name: alpacon_${{ github.ref_name }}_linux_amd64.rpm

- name: Upload AMD64 DEB to PackageCloud
uses: danielmundi/upload-packagecloud@v1
with:
PACKAGE-NAME: dist/*.amd64.deb
PACKAGE-NAME: alpacon_${{ github.ref_name }}_linux_amd64.deb
PACKAGECLOUD-USERNAME: alpacanetworks
PACKAGECLOUD-REPO: alpacon
PACKAGECLOUD-DISTRIB: any/any
Expand All @@ -71,7 +81,7 @@ jobs:
- name: Upload AMD64 RPM to PackageCloud
uses: danielmundi/upload-packagecloud@v1
with:
PACKAGE-NAME: dist/*.amd64.rpm
PACKAGE-NAME: alpacon_${{ github.ref_name }}_linux_amd64.rpm
PACKAGECLOUD-USERNAME: alpacanetworks
PACKAGECLOUD-REPO: alpacon
PACKAGECLOUD-DISTRIB: any/any
Expand Down

0 comments on commit c7d59fa

Please sign in to comment.