Skip to content

Commit 3539d97

Browse files
authored
Publish a snapshot version for every main branch commit (#556)
1 parent 8faab56 commit 3539d97

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/snapshot.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Snapshot Release
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
- main
8+
paths:
9+
- '**.scala'
10+
- '**.java'
11+
- '**.sbt'
12+
tag:
13+
- '!v*'
14+
15+
jobs:
16+
publish_snapshots:
17+
name: Publish snapshots
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
with:
22+
fetch-depth: 10000
23+
# Fetch all tags so that sbt-dynver can find the previous release version
24+
- run: git fetch --tags
25+
- uses: olafurpg/setup-scala@v10
26+
with:
27+
java-version: adopt@1.11
28+
- name: Publish snapshots
29+
env:
30+
SONATYPE_USERNAME: '${{ secrets.SONATYPE_USER }}'
31+
SONATYPE_PASSWORD: '${{ secrets.SONATYPE_PASS }}'
32+
run: ./sbt publish

0 commit comments

Comments
 (0)