File tree Expand file tree Collapse file tree 3 files changed +63
-45
lines changed Expand file tree Collapse file tree 3 files changed +63
-45
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Release
2+ on :
3+ push :
4+ tags :
5+ - ' v*'
6+ jobs :
7+
8+ build :
9+ name : Build
10+ runs-on : ubuntu-latest
11+ env :
12+ GOPATH : ${{ github.workspace }}
13+ GO111MODULE : off
14+ steps :
15+ - name : Install Go
16+ uses : actions/setup-go@v2
17+ with :
18+ go-version : 1.12.x
19+ - name : Checkout code
20+ uses : actions/checkout@v2
21+ with :
22+ path : ./src/github.com/${{ github.repository }}
23+ - name : Build
24+ run : go build
25+ working-directory : ${{ github.workspace }}/src/github.com/${{ github.repository }}
26+ - name : Package
27+ run : tar cvzf hub-xmlrpc-api-linux-amd64.tar.gz hub-xmlrpc-api README.md
28+ working-directory : ${{ github.workspace }}/src/github.com/${{ github.repository }}
29+ - name : Create a Release
30+ uses : actions/create-release@v1
31+ id : create_release
32+ env :
33+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34+ with :
35+ tag_name : ${{ github.ref }}
36+ release_name : ${{ github.ref }}
37+
38+ - name : Upload Release Asset
39+ id : upload-release-asset
40+ 41+ env :
42+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43+ with :
44+ upload_url : ${{ steps.create_release.outputs.upload_url }}
45+ asset_path : ./src/github.com/${{ github.repository }}/hub-xmlrpc-api-linux-amd64.tar.gz
46+ asset_name : hub-xmlrpc-api-linux-amd64.tar.gz
47+ asset_content_type : application/gzip
Original file line number Diff line number Diff line change 1+ # logrotation file for Hub XMLRPC API
2+ #
3+
4+ /var/log/hub/hub-xmlrpc-api.log
5+ {
6+ weekly
7+ rotate 5
8+ copytruncate
9+ compress
10+ notifempty
11+ missingok
12+ size=10M
13+ postrotate
14+ /usr/bin/systemctl reload rsyslog.service > /dev/null
15+ endscript
16+ }
You can’t perform that action at this time.
0 commit comments