Skip to content

Commit

Permalink
Add docs and tck publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Oct 2, 2024
1 parent 3c4016c commit 35150be
Showing 1 changed file with 67 additions and 2 deletions.
69 changes: 67 additions & 2 deletions .github/workflows/release-perform.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: SmallRye Release
run-name: Perform ${{github.event.inputs.tag || github.ref_name}} Release
run-name: Perform ${{env.RELEASE_VERSION}} Release
on:
push:
tags:
Expand All @@ -19,10 +19,75 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
RELEASE_VERSION: ${{github.event.inputs.tag || github.ref_name}}

jobs:
perform-release:
name: Perform Release
uses: smallrye/.github/.github/workflows/perform-release.yml@main
secrets: inherit
with:
version: ${{github.event.inputs.tag || github.ref_name}}
version: ${{env.RELEASE_VERSION}}

publish-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: app-token
name: Create GitHub App Token
with:
app-id: ${{ vars.CI_APP_ID }}
private-key: ${{ secrets.CI_APP_PRIVATE_KEY }}

- uses: actions/checkout@v4
with:
ref: ${{env.RELEASE_VERSION}}
token: ${{steps.app-token.outputs.token}}

- name: Get GitHub App User ID
id: get-user-id
run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}

- name: Configure Git author
run: |
git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]'
git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>'
- uses: actions/setup-python@v5
with:
python-version: '3.9'

- name: docs release ${{env.RELEASE_VERSION}}
run: |
cd documentation
mvn package
pipx install pipenv
pipenv install
git fetch origin gh-pages --depth=1
pipenv run mike deploy --config-file=mkdocs.yaml --push --update-aliases "${RELEASE_VERSION}" Latest
publish-tck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{env.RELEASE_VERSION}}
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11
- name: generate tck report
run: |
mvn surefire-report:report
mv testsuite/tck/target/tck-results.html $GITHUB_WORKSPACE
- uses: meeDamian/[email protected]
name: upload tck asset to release
with:
token: ${{secrets.GITHUB_TOKEN}}
tag: ${{env.RELEASE_VERSION}}
allow_override: true
gzip: false
files: tck-results.html

0 comments on commit 35150be

Please sign in to comment.