Skip to content

Commit

Permalink
Merge pull request #43 from ak1ra24/change-github-config
Browse files Browse the repository at this point in the history
Change GitHub config
  • Loading branch information
slankdev authored Feb 22, 2020
2 parents b29b171 + 9391c4c commit 1e40b90
Show file tree
Hide file tree
Showing 7 changed files with 104 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @ak1ra24
* @ak1ra24 @slankdev
27 changes: 27 additions & 0 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Set to true to add reviewers to pull requests
addReviewers: true

# Set to true to add assignees to pull requests
addAssignees: false

# A list of reviewers to be added to pull requests (GitHub user name)
reviewers:
- slankdev
- ak1ra24

# A number of reviewers added to the pull request
# Set 0 to add all the reviewers (default: 0)
numberOfReviewers: 1

# A list of assignees, overrides reviewers if set
# assignees:
# - assigneeA

# A number of assignees to add to the pull request
# Set to 0 to add all of the assignees.
# Uses numberOfReviewers if unset.
# numberOfAssignees: 2

# A list of keywords to be skipped the process that add reviewers if pull requests include it
skipKeywords:
- wip
3 changes: 0 additions & 3 deletions .github/delete-merged-branch-config.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/workflows/pr-auto-assign.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 'Auto Assign'
on: pull_request

jobs:
add-reviews:
runs-on: ubuntu-latest
steps:
- uses: kentaro-m/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: ".github/auto_assign.yml"
32 changes: 32 additions & 0 deletions .github/workflows/release-master.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: release-master
on:
push:
branches:
- master

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: Build
env:
GO111MODULE: on
GOPATH: /home/runner/work/
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go get -u github.com/tcnksm/ghr
go get -u github.com/Songmu/ghch/cmd/ghch
export TAGNAME=latest
go build -ldflags="-s -w -X main.Version=$TAGNAME"
mkdir -p dist/latest
tar -zcvf dist/latest/tinet_latest_linux64_amd64.tar.gz tinet
$GOPATH/bin/ghr -n=$TAGNAME -b="$($GOPATH/bin/ghch -F markdown --latest)" -replace $TAGNAME ./dist/$TAGNAME
33 changes: 33 additions & 0 deletions .github/workflows/release-tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: Build
env:
GO111MODULE: on
GOPATH: /home/runner/work/
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go get -u github.com/x-motemen/gobump/cmd/gobump
go get -u github.com/tcnksm/ghr
go get -u github.com/Songmu/ghch/cmd/ghch
go get -u github.com/Songmu/goxz/cmd/goxz
export TAGNAME=$($GOPATH/bin/gobump show -r)
echo "DEBUG:" $TAGNAME
$GOPATH/bin/goxz -pv $TAGNAME -os=linux -arch=amd64 -d ./dist/v$TAGNAME
$GOPATH/bin/ghr -n=v$TAGNAME -b="$($GOPATH/bin/ghch -F markdown --latest)" -draft v$TAGNAME ./dist/v$TAGNAME
26 changes: 0 additions & 26 deletions .github/workflows/release.yaml

This file was deleted.

0 comments on commit 1e40b90

Please sign in to comment.