Skip to content

Update sbt to 1.10.1 (#229) #382

Update sbt to 1.10.1 (#229)

Update sbt to 1.10.1 (#229) #382

Workflow file for this run

name: Release
on:
push:
branches: [ main ]
release:
types: [ published ]
jobs:
release:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
java: [ '[email protected]' ]
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v14
with:
java-version: ${{ matrix.java }}
- name: Set current version
id: version
shell: bash
run: |
sbt 'cli/writeVersion'
FIT4S_VERSION=$(cat target/version.txt)
echo "FIT4S_VERSION=${FIT4S_VERSION}" >> $GITHUB_ENV
if [ -z "${FIT4S_VERSION}" ]; then
echo "Version not set!"
exit 1
fi
- uses: bahmutov/npm-install@v1
with:
working-directory: modules/webview
- name: create zip package
run: ./make-cli.sh
- name: Publish Release (${{ env.FIT4S_VERSION }})
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: modules/cli/target/universal/fit4s-cli-${{ env.FIT4S_VERSION }}.zip
- name: Publish Pre-Release
uses: ncipollo/release-action@v1
if: ${{ github.ref }} == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true
allowUpdates: true
tag: "nightly"
commit: "main"
body: "Floating tag associating the latest build from the main branch"
name: "fit4s nightly"
replacesArtifacts: true
removeArtifacts: true
artifacts: modules/cli/target/universal/fit4s-cli-${{ env.FIT4S_VERSION }}.zip