forked from msgpack/msgpack-java
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 728 Bytes
/
snapshot.yml
File metadata and controls
32 lines (30 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Snapshot Release
on:
push:
branches:
- develop
- main
paths:
- '**.scala'
- '**.java'
- '**.sbt'
tag:
- '!v*'
jobs:
publish_snapshots:
name: Publish snapshots
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 10000
# Fetch all tags so that sbt-dynver can find the previous release version
- run: git fetch --tags
- uses: olafurpg/setup-scala@v10
with:
java-version: adopt@1.11
- name: Publish snapshots
env:
SONATYPE_USERNAME: '${{ secrets.SONATYPE_USER }}'
SONATYPE_PASSWORD: '${{ secrets.SONATYPE_PASS }}'
run: ./sbt publish