Skip to content

Commit

Permalink
Added proper matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelloeater committed Sep 19, 2024
1 parent bec88a8 commit c1a66bb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ permissions:

jobs:
goreleaser:
strategy:
matrix:
distro: [debian/bullseye, debian/bookworm, ubuntu/noble, ubuntu/jammy]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -37,12 +34,31 @@ jobs:
args: release --clean --verbose --config .goreleaser.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload .deb artifact
uses: actions/upload-artifact@v3
with:
name: deb-package
path: dist/*.deb

packagecloud:
runs-on: ubuntu-latest
needs:
- goreleaser
strategy:
matrix:
distro: [debian/bullseye, debian/bookworm, ubuntu/noble, ubuntu/jammy]
steps:
- name: Download .deb artifact
uses: actions/download-artifact@v3
with:
name: deb-package

- name: push package to packagecloud.io
- name: Push package to packagecloud.io
uses: computology/[email protected]
with:
package-name: dist/*.deb
package-name: ./*.deb
packagecloud-username: jelloeater
packagecloud-reponame: stampy
packagecloud-distro: ${{ matrix.distro }}
packagecloud-token: ${{ secrets.PACKAGECLOUD_TOKEN }}

2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ release:
# If set to true, will not auto-publish the release.
# Note: all GitHub releases start as drafts while artifacts are uploaded.
# Available only for GitHub and Gitea.
draft: true
draft: false

# Whether to remove existing draft releases with the same name before creating
# a new one.
Expand Down

0 comments on commit c1a66bb

Please sign in to comment.