Skip to content

Commit 34a3879

Browse files
committed
GitHub Actions
1 parent 817972f commit 34a3879

File tree

6 files changed

+119
-0
lines changed

6 files changed

+119
-0
lines changed

.github/release-drafter.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name-template: 'v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
template: |
4+
# What's Changed
5+
$CHANGES
6+
categories:
7+
- title: 'Breaking'
8+
label: 'type: breaking'
9+
- title: 'New'
10+
label: 'type: feature'
11+
- title: 'Bug Fixes'
12+
label: 'type: bug'
13+
- title: 'Maintenance'
14+
label: 'type: maintenance'
15+
- title: 'Documentation'
16+
label: 'type: docs'
17+
- title: 'Dependency Updates'
18+
label: 'type: dependencies'
19+
20+
version-resolver:
21+
major:
22+
labels:
23+
- 'type: breaking'
24+
minor:
25+
labels:
26+
- 'type: feature'
27+
patch:
28+
labels:
29+
- 'type: bug'
30+
- 'type: maintenance'
31+
- 'type: docs'
32+
- 'type: dependencies'
33+
- 'type: security'
34+
35+
exclude-labels:
36+
- 'skip-changelog'

.github/renovate.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"automerge": true,
3+
"labels": ["type: dependencies"],
4+
"packageRules": [
5+
{
6+
"matchManagers": [
7+
"sbt"
8+
],
9+
"enabled": false
10+
}
11+
]
12+
}

.github/workflows/auto-approve.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Auto approve
2+
3+
on:
4+
pull_request_target
5+
6+
jobs:
7+
auto-approve:
8+
runs-on: ubuntu-20.04
9+
steps:
10+
- uses: hmarr/[email protected]
11+
if: github.actor == 'scala-steward' || github.actor == 'renovate[bot]'
12+
with:
13+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
jobs:
5+
ci:
6+
runs-on: ubuntu-20.04
7+
steps:
8+
- uses: actions/[email protected]
9+
with:
10+
fetch-depth: 100
11+
- name: Fetch tags
12+
run: git fetch --depth=100 origin +refs/tags/*:refs/tags/*
13+
- uses: olafurpg/setup-scala@v10
14+
with:
15+
java-version: [email protected]
16+
- name: Coursier cache
17+
uses: coursier/cache-action@v6
18+
- name: sbt ci ${{ github.ref }}
19+
run: ./sbt ci

.github/workflows/release-drafter.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
update_release_draft:
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- uses: release-drafter/release-drafter@v5
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release
2+
on:
3+
push:
4+
branches: [ master ]
5+
release:
6+
types: [ published ]
7+
jobs:
8+
release:
9+
runs-on: ubuntu-20.04
10+
steps:
11+
- uses: actions/[email protected]
12+
with:
13+
fetch-depth: 0
14+
- uses: olafurpg/setup-scala@v10
15+
with:
16+
java-version: [email protected]
17+
- name: Coursier cache
18+
uses: coursier/cache-action@v6
19+
- name: sbt ci-release ${{ github.ref }}
20+
run: ./sbt ci-release
21+
env:
22+
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
23+
PGP_SECRET: ${{ secrets.PGP_SECRET }}
24+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
25+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

0 commit comments

Comments
 (0)