Skip to content

[maven-release-plugin] prepare release v4.12.1 #56

[maven-release-plugin] prepare release v4.12.1

[maven-release-plugin] prepare release v4.12.1 #56

Workflow file for this run

on:
push:
tags:
- v*
name: Deploy ANNIS
jobs:
deploy_release_binaries:
name: Deploy release binaries
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set JAVA_HOME to included JDK 8
run: echo JAVA_HOME=$JAVA_HOME_8_X64 >> $GITHUB_ENV
- run: misc/download-annis-cli.sh
env:
OS_NAME: linux
- run: misc/import-test-corpora.sh
- name: Build server binary
run: mvn clean install
- name: Build desktop binary
run: mvn -Pdesktop install
- name: Extract release notes
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1
- name: Release assets on GitHub
uses: softprops/[email protected]
with:
files: |
target/annis-*-desktop.jar
target/annis-*-server.jar
body: ${{ steps.extract-release-notes.outputs.release_notes }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
deploy_documentation:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Get the release version from the GITHUB_REF variable as new SHORT_VERSION variable
run: echo "SHORT_VERSION=$(echo ${GITHUB_REF} | sed -E 's/^refs\/heads\/.*/develop/' | sed -E 's/^(refs\/tags\/v)?(.*)(\.[0-9]+\.[0-9]+)$/\2/')" >> $GITHUB_ENV
- run: misc/download-mdbook.sh 0.4.17
env:
OS_NAME: linux
- name: Generate the user documentation
run: mdbook build --dest-dir book/${SHORT_VERSION}/user-guide/ docs/user-guide/
- name: Generate the developer documentation
run: mdbook build --dest-dir book/${SHORT_VERSION}/developer-guide/ docs/developer-guide/
- run: git clone -q -b gh-pages https://github.com/$GITHUB_REPOSITORY gh-pages
- name: Remove old files for this version
run: rm -Rf gh-pages/$SHORT_VERSION
- name: copy the user documentation content
run: cp -R docs/user-guide/book/* gh-pages/
- name: copy the developer documentation content
run: cp -R docs/developer-guide/book/* gh-pages/
- run: git add $SHORT_VERSION
working-directory: gh-pages
- run: git -c user.name='gh-actions' -c user.email='gh-actions' commit --allow-empty -m "add documentation for version $SHORT_VERSION"
working-directory: gh-pages
- name: Push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
directory: gh-pages
branch: gh-pages