diff --git a/.github/workflows/build-pr-preview.yml b/.github/workflows/build-pr-preview.yml new file mode 100644 index 0000000..c311b18 --- /dev/null +++ b/.github/workflows/build-pr-preview.yml @@ -0,0 +1,55 @@ +name: Build PR Preview + +on: + pull_request: + +jobs: + build-website: + name: Build Website + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + # - name: Set up JDK 21 + # uses: actions/setup-java@v4 + # with: + # distribution: temurin + # java-version: 21 + # cache: 'maven' + + # - name: Build Roq + # run: mvn -B clean install --file pom.xml -DskipTests -Dno-format + + # - name: Store PR id + # run: | + # echo ${{ github.event.number }} > ./docs/target/generated-docs/pr-id.txt + + # - name: Publishing docs + # uses: actions/upload-artifact@v4 + # with: + # name: docs + # path: ./docs/target/generated-docs + # retention-days: 3 + + - name: Generate blog + uses: quarkiverse/quarkus-roq@v1 + with: + # github-token: ${{ secrets.GITHUB_TOKEN }} + maven-executable: 'mvn' + maven-build-args: '-DskipTests -Dquarkus.profile=gh-pages' + github-pages: 'false' + setup-java: 'false' + # - name: Build blog + # uses: ./ + # with: + # setup-java: 'false' + # github-pages: 'false' + # site-directory: 'blog' + # site-future: 'true' + # maven-executable: 'mvn' + + - name: Publishing blog + uses: actions/upload-artifact@v4 + with: + name: blog + path: ./target/roq + retention-days: 3 diff --git a/.github/workflows/static.yml b/.github/workflows/deploy.yml similarity index 86% rename from .github/workflows/static.yml rename to .github/workflows/deploy.yml index 4b432cf..ea64de2 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/deploy.yml @@ -13,9 +13,9 @@ concurrency: jobs: build: runs-on: ubuntu-latest - permissions: - pages: write # to deploy to Pages - id-token: write # to verify the deployment originates from an appropriate source + # permissions: + # pages: write # to deploy to Pages + # id-token: write # to verify the deployment originates from an appropriate source steps: - uses: actions/checkout@v4 - name: Generate Blog