feat(HIP-869): Dynamic Address Book - Stage 1 - HAPI Endpoints (#1892) #94
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: Upload Github Pages | |
on: | |
push: | |
branches: | |
- main | |
defaults: | |
run: | |
shell: bash | |
permissions: | |
contents: read | |
packages: write | |
id-token: write | |
pages: write | |
env: | |
LC_ALL: C.UTF-8 | |
jobs: | |
publish: | |
name: Publish | |
runs-on: [ self-hosted, Linux, medium, ephemeral ] | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1 | |
with: | |
egress-policy: audit | |
- name: Checkout Code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Setup Java | |
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4 | |
- name: Compile SDK | |
run: ./gradlew compileJava --scan | |
- name: Generate Javadoc | |
run: ./gradlew sdk:javadoc --scan | |
- name: Pages | |
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1 | |
with: | |
path: ./sdk/build/docs/javadoc | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} |