refactor: remove extra cleanup step to remove docs folder #14
Workflow file for this run
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: Build, Test and Deploy | ||
on: | ||
push | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: 'temurin' | ||
cache: maven | ||
- name: Build with Maven Wrapper | ||
run: ./mvnw clean verify | ||
- name: Upload plugin update-site | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: updatesite | ||
path: com.developer.nefarious.zjoule.updatesite/target/repository/ | ||
release: | ||
needs: release | ||
Check failure on line 32 in .github/workflows/main.yaml
|
||
runs-on: ubuntu-latest | ||
# if: github.ref == 'refs/heads/main' | ||
steps: | ||
- name: Download updatesite | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: updatesite | ||
javadoc: | ||
needs: release | ||
runs-on: ubuntu-latest | ||
# if: github.ref == 'refs/heads/main' | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: 'temurin' | ||
cache: maven | ||
- name: Generate Javadoc | ||
run: | | ||
./mvnw javadoc:javadoc \ | ||
-pl com.developer.nefarious.zjoule.plugin | ||
- name: Upload JavaDoc | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: documentation | ||
path: com.developer.nefarious.zjoule.plugin/target/reports/apidocs/ | ||
publish: | ||
needs: javadoc | ||
runs-on: ubuntu-latest | ||
# if: github.ref == 'refs/heads/main' | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Download JavaDoc | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: documentation | ||
# - name: Deploy to GitHub Pages | ||
# uses: peaceiris/actions-gh-pages@v4 | ||
# with: | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# publish_dir: . | ||
# publish_dir: ./public |