Skip to content

Commit a364793

Browse files
author
Merlin Rabens
committed
#2388 Add GitHub Actions Workflows
Signed-off-by: Merlin Rabens <merlin.rabens@intenthq.com>
1 parent 5496175 commit a364793

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: CI
2+
on:
3+
push:
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v1
9+
- uses: olafurpg/setup-scala@v2
10+
- name: Compile
11+
run: csbt compile
12+

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release
2+
on:
3+
push:
4+
tags: ["*"]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- uses: olafurpg/setup-scala@v2
11+
- uses: olafurpg/setup-gpg@v2
12+
- name: Publish
13+
run: |
14+
git ls-remote --get-url origin
15+
csbt ci-release
16+
env:
17+
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
18+
PGP_SECRET: ${{ secrets.PGP_SECRET }}
19+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
20+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
21+
- name: Send Slack notification
22+
uses: act10ns/slack@v1
23+
env:
24+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
25+
with:
26+
status: ${{ job.status }}
27+
if: failure()
28+

0 commit comments

Comments
 (0)