1.0.15 #17
Workflow file for this run
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 to GitHub Pages | |
on: | |
release: | |
types: [published] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: Install Node dependencies | |
run: npm ci --prefer-offline --no-audit | |
- name: Set up Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Gradle build | |
run: ./gradlew build | |
- name: Run website tests | |
run: npm run test --if-present | |
- name: Build website | |
run: npm run build | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./build | |
- name: Install EnhanceDocs CLI | |
uses: enhancedocs/[email protected] | |
with: | |
api-key: ${{ secrets.ENHANCEDOCS_API_KEY }} | |
- name: Update Docs | |
run: enhancedocs alpha sources web --project ${{ secrets.ENHANCEDOCS_PROJECT_ID }} https://arrow-kt.io |