File: snapshot.yml

package info (click to toggle)
snappy-java 1.1.10.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,300 kB
  • sloc: java: 5,747; sh: 2,506; xml: 431; cpp: 295; makefile: 203
file content (40 lines) | stat: -rw-r--r-- 1,052 bytes parent folder | download
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
33
34
35
36
37
38
39
40
name: Snapshot Release

on:
  push:
    branches:
      - main
    paths:
      - '**.scala'
      - '**.java'
      - '**.sbt'
      - 'src/main/resources/org/xerial/snappy/native/**'
      - '.github/workflows/snapshot.yml'
    tag:
      - '!*'
  workflow_dispatch:

jobs:
  publish_snapshots:
    name: Publish snapshots
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 10000
       # Fetch all tags so that sbt-dynver can find the previous release version
      - run: git fetch --tags
      - uses: actions/setup-java@v4
        with:
          distribution: 'zulu'
          java-version: '11'
      - uses: actions/cache@v4
        with:
          path: ~/.cache
          key: ${{ runner.os }}-snapshot-${{ hashFiles('**/*.sbt') }}
          restore-keys: ${{ runner.os }}-snapshot-
      - name: Publish snapshots
        env:
          SONATYPE_USERNAME: '${{ secrets.SONATYPE_USERNAME }}'
          SONATYPE_PASSWORD: '${{ secrets.SONATYPE_PASSWORD }}'
        run: ./sbt publish