Skip to content

Commit

Permalink
Move to hanabix (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongl authored Apr 14, 2021
1 parent 3d9c1ff commit 5690a9f
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 10 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Release

on:
milestone:
types:
- closed

jobs:
releasing:
runs-on: ubuntu-latest
steps:
- name: Create a release with title of milestone
run: gh -R $GITHUB_REPOSITORY release create $REL_TAG -t $REL_TAG -n "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/milestone/$MS_ID?closed=1"
env:
GITHUB_TOKEN: ${{secrets.REPO_GITHUB_TOKEN}}
REL_TAG: ${{github.event.milestone.title}}
MS_ID: ${{github.event.milestone.number}}
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml → .github/workflows/sbt-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: CI

on:
push:
branches:
- master
- main
branches:
- master
- main
pull_request:

jobs:
build:
runs-on: ubuntu-20.04
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v10
Expand All @@ -18,4 +20,3 @@ jobs:
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
CI_BRANCH: ${{ steps.branch-name.outputs.current_branch }}

Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Release
name: Publish
on:
push:
tags: ["v*"]

jobs:
publish:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![ci badge](https://github.com/zhongl/config-annotation/workflows/CI/badge.svg) ![release badge](https://github.com/zhongl/config-annotation/workflows/Release/badge.svg) [![Maven Central](https://img.shields.io/maven-central/v/com.wacai/config-annotation_2.13)](https://search.maven.org/artifact/com.wacai/config-annotation_2.13) [![Coverage Status](https://coveralls.io/repos/github/zhongl/config-annotation/badge.svg)](https://coveralls.io/github/zhongl/config-annotation)
[![CI](https://github.com/hanabix/config-annotation/actions/workflows/sbt-coverage.yml/badge.svg)](https://github.com/hanabix/config-annotation/actions/workflows/sbt-coverage.yml) [![Publish](https://github.com/hanabix/config-annotation/actions/workflows/sbt-release.yml/badge.svg)](https://github.com/hanabix/config-annotation/actions/workflows/sbt-release.yml) [![Maven Central](https://img.shields.io/maven-central/v/com.wacai/config-annotation_2.13)](https://search.maven.org/artifact/com.wacai/config-annotation_2.13) [![Coverage Status](https://coveralls.io/repos/github/hanabix/config-annotation/badge.svg)](https://coveralls.io/github/hanabix/config-annotation) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/ba5b0f3a2107473fbb756e8eabfcbc26)](https://www.codacy.com/gh/hanabix/config-annotation/dashboard?utm_source=github.com&utm_medium=referral&utm_content=hanabix/config-annotation&utm_campaign=Badge_Grade)

A refactor-friendly configuration lib would help scala programmers to maintain [config][conf] files without any pain,
by using scala [macro annotation][mcr].
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ lazy val root = (project in file("."))
lazy val basicSettings = Seq(
name := "config-annotation",
organization := "com.wacai",
homepage := Some(url("https://github.com/zhongl/config-annotation")),
homepage := Some(url("https://github.com/hanabix/config-annotation")),
licenses := List(
"Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
),
Expand Down

0 comments on commit 5690a9f

Please sign in to comment.