Skip to content

Commit 5219f84

Browse files
committed
Release fixups
1 parent e2c69dc commit 5219f84

File tree

3 files changed

+63
-45
lines changed

3 files changed

+63
-45
lines changed

.github/workflows/go.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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+
uses: actions/[email protected]
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

release/logrotate.conf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
}

0 commit comments

Comments
 (0)