fix: add missing velocity publishing #130
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: 'deploy' | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
# third-party action that cancels previous runs | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Cloning repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Execute Gradle Javadocs | |
env: | |
STORAGE_TYPE: ${{ matrix.storageType }} | |
run: ./gradlew aggregateJavadoc | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_DOKKU_KEY }} | |
- name: Deploy | |
run: | | |
cd ./build/docs/aggregateJavadoc | |
ssh-keyscan ${{ secrets.DOKKU_HOST }} >> ~/.ssh/known_hosts | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --global user.name "github-actions" | |
git config --global push.default simple | |
git init | |
git remote add deploy dokku@${{ secrets.DOKKU_HOST }}:javadocs.banmanagement.com >/dev/null 2>&1 | |
touch .static | |
git add -f . | |
git commit -m "update" | |
git push -f deploy master >/dev/null 2>&1 |