From 07ec3dba5ac6f26409e246e71dd1129dfe92501f Mon Sep 17 00:00:00 2001 From: royroyee Date: Fri, 22 Dec 2023 19:08:36 +0900 Subject: [PATCH] Update packagecloud deploy --- .github/workflows/release.yml | 88 ++++++++++++++++++----------------- 1 file changed, 45 insertions(+), 43 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 487ced1..3c1f503 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,46 +43,48 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }} -# - name: Upload AMD64 DEB artifacts -# uses: actions/upload-artifact@v3 -# with: -# 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 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: alpacon_${{ github.ref_name }}_linux_amd64.rpm -# -# - name: Upload AMD64 DEB to PackageCloud -# uses: danielmundi/upload-packagecloud@v1 -# with: -# PACKAGE-NAME: alpacon_${{ github.ref_name }}_linux_amd64.deb -# PACKAGECLOUD-USERNAME: alpacanetworks -# PACKAGECLOUD-REPO: alpacon -# PACKAGECLOUD-DISTRIB: any/any -# PACKAGECLOUD-TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }} -# -# - name: Upload AMD64 RPM to PackageCloud -# uses: danielmundi/upload-packagecloud@v1 -# with: -# PACKAGE-NAME: alpacon_${{ github.ref_name }}_linux_amd64.rpm -# PACKAGECLOUD-USERNAME: alpacanetworks -# PACKAGECLOUD-REPO: alpacon -# PACKAGECLOUD-DISTRIB: any/any -# PACKAGECLOUD-TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }} \ No newline at end of file + - name: Upload AMD64 DEB artifacts + uses: actions/upload-artifact@v3 + with: + 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 AMD64 DEB Artifacts + uses: actions/download-artifact@v3 + with: + name: alpacon_${{ github.ref_name }}_linux_amd64.deb + path: dist/alpacon_${{ github.ref_name }}_linux_amd64.deb + + - name: Download AMD64 RPM Artifacts + uses: actions/download-artifact@v3 + with: + name: alpacon_${{ github.ref_name }}_linux_amd64.rpm + path: dist/alpacon_${{ github.ref_name }}_linux_amd64.rpm + + - name: Upload AMD64 DEB to PackageCloud + uses: danielmundi/upload-packagecloud@v1 + with: + PACKAGE-NAME: alpacon_${{ github.ref_name }}_linux_amd64.deb + PACKAGECLOUD-USERNAME: alpacanetworks + PACKAGECLOUD-REPO: alpacon + PACKAGECLOUD-DISTRIB: any/any + PACKAGECLOUD-TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }} + + - name: Upload AMD64 RPM to PackageCloud + uses: danielmundi/upload-packagecloud@v1 + with: + PACKAGE-NAME: alpacon_${{ github.ref_name }}_linux_amd64.rpm + PACKAGECLOUD-USERNAME: alpacanetworks + PACKAGECLOUD-REPO: alpacon + PACKAGECLOUD-DISTRIB: any/any + PACKAGECLOUD-TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }} \ No newline at end of file