Skip to content

Commit

Permalink
fix(typo): fix ci typo
Browse files Browse the repository at this point in the history
fix ci typo

Signed-off-by: ysicing <[email protected]>
  • Loading branch information
ysicing committed Jun 19, 2022
1 parent 1f92e3a commit fa3d807
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 11 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,21 @@ jobs:
env:
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
run: |
curl -F package=@dist/qcadmin*linux_amd64.deb https://{$FURY_TOKEN}@push.fury.io/qucheng/
curl -F package=@dist/qcadmin*linux_arm64.deb https://{$FURY_TOKEN}@push.fury.io/qucheng/
curl -F package=@dist/qcadmin*linux_amd64.rpm https://{$FURY_TOKEN}@push.fury.io/qucheng/
curl -F package=@dist/qcadmin*linux_arm64.rpm https://{$FURY_TOKEN}@push.fury.io/qucheng/
for filename in dist/*.deb; do
if [[ "$filename" == *"arm"* ]]; then
echo "Skipping $filename"
continue
fi
echo "Pushing $filename to apt repository"
curl -F package=@$filename https://${FURY_TOKEN}@push.fury.io/qucheng/
curl -F package=@$filename https://${FURY_TOKEN}@push.fury.io/qucheng/
done
for filename in dist/*.rpm; do
if [[ "$filename" == *"arm"* ]]; then
echo "Skipping $filename"
continue
fi
echo "Pushing $filename to rpm repository"
curl -F package=@$filename https://${FURY_TOKEN}@push.fury.io/qucheng/
curl -F package=@$filename https://${FURY_TOKEN}@push.fury.io/qucheng/
done
9 changes: 2 additions & 7 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ env:

before:
hooks:
- make generate
- ./hack/scripts/gencompletions.sh
- ./hack/scripts/genmanpages.sh
- make generate
# - make default
builds:
- ldflags:
Expand Down Expand Up @@ -100,7 +100,7 @@ snapshot:
name_template: "{{ .Version }}-snapshot-{{.ShortCommit}}"

nfpms:
- file_name_template: '{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}'
- file_name_template: 'qcadmin_{{ .Tag }}_{{ .Os }}_{{ .Arch }}'
homepage: https://www.qucheng.com
version_metadata: git
description: |-
Expand Down Expand Up @@ -200,8 +200,3 @@ changelog:
order: 10
- title: Other work
order: 999

release:
footer: |
**Full Changelog**: https://github.com/easysoft/qucheng_cli/compare/{{ .PreviousTag }}...{{ .Tag }}
20 changes: 20 additions & 0 deletions hack/scripts/upload-gemfury.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

for filename in dist/*.deb; do
if [[ "$filename" == *"arm"* ]]; then
echo "Skipping $filename"
continue
fi
echo "Pushing $filename to apt repository"
# curl -F package=@$filename https://${FURY_TOKEN}@push.fury.io/qucheng/
#curl -F package=@$filename https://${FURY_TOKEN}@push.fury.io/qucheng/
done
for filename in dist/*.rpm; do
if [[ "$filename" == *"arm"* ]]; then
echo "Skipping $filename"
continue
fi
echo "Pushing $filename to rpm repository"
# curl -F package=@$filename https://${FURY_TOKEN}@push.fury.io/qucheng/
# curl -F package=@$filename https://${FURY_TOKEN}@push.fury.io/qucheng/
done

0 comments on commit fa3d807

Please sign in to comment.