Skip to content

Commit

Permalink
fix(release): upload artifacts from pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
pskrwe committed Feb 21, 2024
1 parent 0541843 commit 5c60ab9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 24 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,22 @@ jobs:
GH_TAP_PAT: ${{ secrets.GH_TAP_PAT }}
GH_WINGET_PAT: ${{ secrets.GH_WINGET_PAT }}
NFPM_GIT_AGE_PASSPHRASE: ${{ secrets.NFPM_GIT_AGE_PASSPHRASE }}
UPLOAD_RPM_SECRET: ${{ secrets.UPLOAD_RPM_SECRET }}
UPLOAD_DEB_SECRET: ${{ secrets.UPLOAD_DEB_SECRET }}

- name: Upload RPM packages
run: |
for rpm in dist/*.rpm; do
curl --user prskr:${{ secrets.UPLOAD_RPM_SECRET }} \
--upload-file "${rpm}" \
https://code.icb4dc0.de/api/packages/prskr/rpm/upload
done
- name: Upload DEB packages
run: |
for deb in dist/*.deb; do
curl --user prskr:${{ secrets.UPLOAD_DEB_SECRET }} \
--upload-file "${deb}" \
https://code.icb4dc0.de/api/packages/prskr/debian/pool/bookworm/main/upload
done
- name: Setup Pages
uses: actions/configure-pages@v4
Expand Down
23 changes: 1 addition & 22 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ builds:
- CGO_ENABLED=0
binary: git-age
ldflags:
- '-s -w -X github.com/prskr/git-age/handlers/cli.version={{.Tag}} -X github.com/prskr/git-age/handlers/cli.commit={{.Commit}} -X github.com/prskr/git-age/handlers/cli.date={{.Date}}'
- "-s -w -X github.com/prskr/git-age/handlers/cli.version={{.Tag}} -X github.com/prskr/git-age/handlers/cli.commit={{.Commit}} -X github.com/prskr/git-age/handlers/cli.date={{.Date}}"
goos:
- linux
- windows
Expand Down Expand Up @@ -140,24 +140,3 @@ winget:
owner: microsoft
name: winget-pkgs
branch: master

uploads:
- name: RPM
method: PUT
target: https://code.icb4dc0.de/api/packages/prskr/rpm/upload
exts:
- rpm
username: prskr
checksum: false
signature: false
custom_artifact_name: true

- name: DEB
method: PUT
target: https://code.icb4dc0.de/api/packages/prskr/debian/pool/bookworm/main/upload
exts:
- deb
username: prskr
checksum: false
signature: false
custom_artifact_name: true

0 comments on commit 5c60ab9

Please sign in to comment.