Skip to content

Commit

Permalink
Merge pull request #6 from fukata/feature/4-support-github-actions
Browse files Browse the repository at this point in the history
release-drafterの設定を追加
  • Loading branch information
fukata authored Apr 3, 2022
2 parents c218e3a + 87bec9c commit d498f93
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 5 deletions.
60 changes: 60 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name-template: 'v$RESOLVED_VERSION 🌈'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
labels:
- 'feature'
- title: '💪 Enhancement'
labels:
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
- title: '🧰 Maintenance'
label: 'chore'
- title: '🔧 Refactoring'
label: 'refactor'
- title: '📖 Documentation'
label: 'documentation'
- title: '⛓️ Dependency update'
label: 'dependencies'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
template: |
## Changes
$CHANGES
autolabeler:
- label: feature
branch:
- '/^feat(ure)?[/-].+/'
- label: bug
branch:
- '/^fix[/-].+/'
- label: chore
branch:
- '/^chore[/-].+/'
- label: refactor
branch:
- '/(refactor|refactoring)[/-].+/'
- label: documentation
branch:
- '/doc(umentation)[/-].+/'
files:
- '*.md'
- label: enhancement
branch:
- '/(enhancement|improve)[/-].+/'
11 changes: 7 additions & 4 deletions .github/workflows/main.yaml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
name: Main
on: [push]
on:
push:
tags-ignore:
- 'v*'
jobs:
build-only:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.18.0'
- run: go install
- run: go build
- run: go test
- run: go build
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.18.0'
- run: go install
- run: go test
- run: go build
- uses: release-drafter/release-drafter@v5
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
# with:
# config-name: my-config.yml
# disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ Photo data transfer tool.

## Status

[![wercker status](https://app.wercker.com/status/bc0ddbabc6480a220bc99a23d98a5400/s "wercker status")](https://app.wercker.com/project/bykey/bc0ddbabc6480a220bc99a23d98a5400)
![build](https://github.com/github/fukata/ghoto/workflows/build.yml/badge.svg)

![build](https://github.com/github/fukata/ghoto/workflows/release.yml/badge.svg)

## Requirement

Expand Down

0 comments on commit d498f93

Please sign in to comment.