Skip to content

chore: switch to SBT and fix docs ci (#52) #25

chore: switch to SBT and fix docs ci (#52)

chore: switch to SBT and fix docs ci (#52) #25

Workflow file for this run

name: release-assets
on:
push:
branches:
- main
tags:
- "*.*.*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK
if: startsWith(github.ref, 'refs/tags/')
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Set up SBT
uses: sbt/setup-sbt@v1
with:
sbt-runner-version: 1.9.9
- name: Set up Python
if: startsWith(github.ref, 'refs/tags/')
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Set up Poetry
if: startsWith(github.ref, 'refs/tags/')
uses: snok/install-poetry@v1
- name: Build server with SBT
if: startsWith(github.ref, 'refs/tags/')
run: |
sbt -Drevision=${{ github.ref_name }} assemblyWithDeequ
working-directory: tsumugi-server
- name: Build client with poetry
if: startsWith(github.ref, 'refs/tags/')
run: |
poetry version ${{ github.ref_name }}
poetry build --format sdist
working-directory: tsumugi-python
- name: Upload assets
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
draft: false
prerelease: false
files: |
tsumugi-server/withDeequ/scala-2.12/target/tsumugi-server-*.jar
tsumugi-python/dist/tsumugi-*.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}