Fix missing phys. stream type in RDF4J writer (#220) #302
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: Release | |
on: | |
push: | |
branches: [main] | |
tags: ["v*"] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: 'sbt' | |
- run: sbt ci-release | |
env: | |
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
publish-plugins: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: 'sbt' | |
- name: 'Build plugins' | |
run: | | |
sbt -v +jenaPlugin/assembly +rdf4jPlugin/assembly | |
LATEST_SCALA_VERSION=`ls -1 jena-plugin/target | grep scala- | sort -V | tail -n1` | |
echo "LATEST_SCALA_VERSION=$LATEST_SCALA_VERSION" >> $GITHUB_ENV | |
- name: 'Publish plugins (pre-release)' | |
if: github.ref == 'refs/heads/main' | |
uses: ncipollo/[email protected] | |
with: | |
allowUpdates: true | |
prerelease: true | |
draft: false | |
omitDraftDuringUpdate: false | |
makeLatest: false | |
tag: dev | |
name: "Development build" | |
artifacts: 'jena-plugin/target/${{ env.LATEST_SCALA_VERSION }}/*-plugin.jar,rdf4j-plugin/target/${{ env.LATEST_SCALA_VERSION }}/*-plugin.jar' | |
generateReleaseNotes: true | |
- name: 'Publish plugins (tagged release)' | |
if: github.ref != 'refs/heads/main' | |
uses: ncipollo/[email protected] | |
with: | |
prerelease: false | |
draft: false | |
makeLatest: true | |
tag: "${{ github.ref_name }}" | |
name: "${{ github.ref_name }}" | |
artifacts: 'jena-plugin/target/${{ env.LATEST_SCALA_VERSION }}/*-plugin.jar,rdf4j-plugin/target/${{ env.LATEST_SCALA_VERSION }}/*-plugin.jar' | |
generateReleaseNotes: true | |
publish-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
cache: pip | |
cache-dependency-path: 'docs/requirements.txt' | |
- name: Install dependencies | |
working-directory: ./docs | |
run: pip install -r requirements.txt | |
- name: Deploy site | |
working-directory: ./docs | |
run: | | |
export TAG='${{ github.ref_name }}' | |
git fetch origin gh-pages --depth=1 | |
git config user.name ci-bot | |
git config user.email [email protected] | |
if [[ $TAG == v* ]] ; then | |
V_MAJOR=`echo ${TAG#v} | awk -F '.' '{print $1}'` | |
V_MINOR=`echo ${TAG#v} | awk -F '.' '{print $2}'` | |
mike deploy --push --alias-type=redirect --update-aliases "${V_MAJOR}.${V_MINOR}.x" stable "${TAG#v}" | |
else | |
mike deploy --push --alias-type=redirect --title "Development version" --update-aliases dev latest | |
fi |