Update sbt-buildinfo to 0.13.0 (#3711) #2038
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Snapshot Release | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**.scala' | |
- '**.java' | |
- '**.sbt' | |
- '.github/workflows/snapshot.yml' | |
tag: | |
- '!v*' | |
jobs: | |
publish_snapshots: | |
name: Publish snapshots | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# Fetch all tags so that sbt-dynver can find the previous release version | |
fetch-depth: 0 | |
- run: git fetch --tags | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '21' | |
- name: Get Airframe version | |
run: echo "AIRFRAME_VERSION=$(./scripts/dynver.sh)" >> $GITHUB_ENV | |
- name: Check Airframe version | |
run: echo ${AIRFRAME_VERSION} | |
- name: Post version number to Slack | |
id: slack | |
uses: slackapi/slack-github-action@v1.27.0 | |
with: | |
# wvlet dev-snapshot channel | |
channel-id: 'C04CC79BZ7A' | |
slack-message: "Publishing a snapshot version of airframe: `${{ env.AIRFRAME_VERSION }}`" | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
- name: Publish snapshots | |
env: | |
SONATYPE_USERNAME: '${{ secrets.SONATYPE_USER }}' | |
SONATYPE_PASSWORD: '${{ secrets.SONATYPE_PASS }}' | |
run: | | |
./sbt publishSnapshots | |
- name: Publish snapshots of AirSpec | |
env: | |
SONATYPE_USERNAME: '${{ secrets.SONATYPE_USER }}' | |
SONATYPE_PASSWORD: '${{ secrets.SONATYPE_PASS }}' | |
run: | | |
../sbt publishSnapshots | |
working-directory: ./airspec | |
- name: Notify the completion to Slack | |
uses: slackapi/slack-github-action@v1.27.0 | |
with: | |
# wvlet dev-snapshot channel | |
channel-id: 'C04CC79BZ7A' | |
# Update the thread | |
update-ts: ${{ steps.slack.outputs.ts }} | |
slack-message: "[done] Published a snapshot version of airframe: `${{ env.AIRFRAME_VERSION }}`" | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} |