528 standalone sdpi editorial content update #1503
This file contains hidden or 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: Feature Review Build | |
| on: [push, pull_request] | |
| env: | |
| CI: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout branch | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| server-id: github # Value of the distributionManagement/repository/id field of the pom.xml | |
| settings-path: ${{ github.workspace }} # location for the settings.xml file | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.0' # Not needed with a .ruby-version file | |
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
| - name: Setup gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Create folders | |
| run: | | |
| mkdir -p sdpi-documents/sdpi-standard | |
| mkdir -p sdpi-documents/sdpi-supplement | |
| - name: Create SDPi Standard HTML with Gradle | |
| run: ./gradlew run --args="--input-file ../../asciidoc/sdpi-standard.adoc --output-folder ../../sdpi-documents/sdpi-standard --github-token '${{ secrets.SDPI_API_ACCESS_TOKEN_SECRET }}' --backend html" | |
| working-directory: .ci/asciidoc-converter | |
| - name: Create SDPi Supplement HTML with Gradle | |
| run: ./gradlew run --args="--input-file ../../asciidoc/sdpi-supplement.adoc --output-folder ../../sdpi-documents/sdpi-supplement --github-token '${{ secrets.SDPI_API_ACCESS_TOKEN_SECRET }}' --backend html" | |
| working-directory: .ci/asciidoc-converter | |
| - name: Generate SDPi Standard and Supplement PlantUML diagrams and static files | |
| run: .github/prepare_artifacts.sh "x.x.x" | |
| - name: Extract branch name | |
| shell: bash | |
| run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" | tr '/' '-' >> $GITHUB_OUTPUT | |
| id: extract_branch | |
| - name: Upload artifact | |
| # if: success() && github.ref == 'refs/heads/master' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sdpi-documents-${{ steps.extract_branch.outputs.branch }} | |
| path: sdpi-documents |