XENFRED-4897 WIP #123
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: 'Continuous Integration' | |
on: [ push, workflow_dispatch ] | |
env: | |
GRADLE_OPTS: >- | |
-Dorg.gradle.project.buildDate=$(date +%s) | |
-Dorg.gradle.project.org.alfresco.maven.nexus.username=${{ secrets.ALFRESCO_NEXUS_USERNAME }} | |
-Dorg.gradle.project.org.alfresco.maven.nexus.password=${{ secrets.ALFRESCO_NEXUS_PASSWORD }} | |
-Dorg.gradle.project.eu.xenit.cloudsmith.username=${{ secrets.CLOUDSMITH_USER }} | |
-Dorg.gradle.project.eu.xenit.cloudsmith.password=${{ secrets.CLOUDSMITH_APIKEY }} | |
jobs: | |
continuousIntegration: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: | | |
${{ secrets.SSH_JENKINS_KEY }} | |
${{ secrets.DEPLOY_KEY_ALFRED_API }} | |
${{ secrets.DEPLOY_KEY_ALFRED_API_DOCS }} | |
${{ secrets.DEPLOY_KEY_EDGE_DOCS }} | |
${{ secrets.DEPLOY_KEY_FINDER_DOCS }} | |
${{ secrets.DEPLOY_KEY_INFLOW_DOCS }} | |
- name: Set up WSL | |
uses: Vampire/setup-wsl@v2 | |
- name: init submodules | |
run: | | |
wsl git submodule update --init --remote | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Login to Docker | |
uses: docker/login-action@v2 | |
with: | |
registry: hub.xenit.eu | |
username: ${{ secrets.XENIT_DOCKER_REGISTRY_USERNAME }} | |
password: ${{ secrets.XENIT_DOCKER_REGISTRY_PASSWORD }} | |
- name: Information docx | |
run: | | |
wsl tar --version | |
- name: Build websites | |
run: | | |
wsl [ -e "pandoc.deb" ] || curl -L https://github.com/jgm/pandoc/releases/download/1.17.2/pandoc-1.17.2-1-amd64.deb -o pandoc.deb | |
wsl echo "84fe35ed9be0f1d8eb6d4cc03d63a8e532e9776f pandoc.deb" | sha1sum -c | |
wsl dpkg -x pandoc.deb pandoc | |
wsl PATH="$(pwd)/pandoc/usr/bin":"$PATH" bash -x ./build-websites.sh | |
# - name: 'Upload Artifact' | |
# if: success() | |
# uses: actions/upload-artifact@v3 | |
# with: | |
# name: website | |
# path: /home/runner/work/alfred-docs/alfred-docs/**/build/website.tar.gz | |
# retention-days: 2 |