File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Publish release
1+ name : Release
22
3- on :
4- push :
5- branches :
6- - master
3+ on : [push, pull_request]
74
85jobs :
9- publish :
6+ test-package :
107 if : ${{ !contains(github.event.head_commit.message, 'skip ci') }}
118 runs-on : ubuntu-latest
9+ name : test-package
10+ steps :
11+ - name : Checkout code
12+ uses : actions/checkout@v2
13+
14+ - name : Use Go 1.11 and Test
15+ uses : cedrickring/golang-action/go1.11@1.6.0
16+ env :
17+ IMPORT : " ProspectOne/perfops-cli"
1218
19+ publish-package :
20+ needs : test-package
21+ name : publish-package
22+ runs-on : ubuntu-latest
23+ if : ${{ github.ref == 'refs/heads/master' }}
1324 steps :
25+ - uses : actions/setup-node@v1
26+ with :
27+ node-version : 14.x
28+ registry-url : https://npm.pkg.github.com/
1429 - uses : actions/checkout@v1
30+ - name : install
31+ run : |
32+ npm install semantic-release @semantic-release/exec -g
1533 - name : release
16- run : npx semantic-release
34+ run : semantic-release
1735 env :
1836 GITHUB_TOKEN : ${{ secrets.DEPLOYMENT_TOKEN }}
37+ PACKAGECLOUD_TOKEN : ${{ secrets.PACKAGECLOUD_TOKEN }}
Original file line number Diff line number Diff line change 1+ {
2+ "plugins" :
3+ [
4+ " @semantic-release/commit-analyzer" ,
5+ " @semantic-release/release-notes-generator" ,
6+ " @semantic-release/github" ,
7+ [" @semantic-release/exec" , {
8+ "publishCmd" : " go get -v -d ./ && bash hack/build-all.sh && bash hack/build-pkgs.sh"
9+ }]
10+ ]
11+ }
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ for TARGET in ${PERFOPS_FPM_TARGETS[@]}; do
3333 echo " Building package $TARGET "
3434 fpm -t $TARGET --rpm-os linux -v $PKG_VERSION -s dir -p release/pkgs/ \
3535 -n perfops --license ALv2 --vendor ProspectOne -m " PerfOps Support <team@perfops.net>" \
36- --description ' A simple command line tool to access the Prospect One PerfOps API.' \
36+ --description " A simple command line tool to access the Prospect One PerfOps API." \
3737 --url https://perfops.net/cli \
3838 release/perfops-linux-amd64=/usr/local/bin/perfops
3939done
@@ -52,12 +52,12 @@ if [[ $PACKAGECLOUD_TOKEN ]]; then
5252 if [[ $PKG == * .deb ]]; then
5353 for DST in ${DEB_DSTS[@]} ; do
5454 echo " Uploading $PKG to $DST "
55- package_cloud push p1/perfops-test /$DST $PKG --skip-errors
55+ package_cloud push p1/perfops/$DST $PKG --skip-errors
5656 done
5757 elif [[ $PKG == * .rpm ]]; then
5858 for DST in ${RPM_DSTS[@]} ; do
5959 echo " Uploading $PKG to $DST "
60- package_cloud push p1/perfops-test /$DST $PKG --skip-errors
60+ package_cloud push p1/perfops/$DST $PKG --skip-errors
6161 done
6262 fi
6363 done
You can’t perform that action at this time.
0 commit comments