diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 689fb9f..1d2c897 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,12 +12,32 @@ permissions: {} jobs: build: + name: Build docs + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5 + with: + persist-credentials: false + + - name: Install uv + uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7 + with: + version: "0.9.*" + enable-cache: true + + - name: Build docs + run: uv run mkdocs build --strict + + deploy: name: Deploy docs runs-on: ubuntu-latest + needs: build + if: github.ref == 'refs/heads/main' && github.event_name == 'push' permissions: contents: write steps: - - name: Checkout main + - name: Checkout uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5 with: persist-credentials: true diff --git a/.github/workflows/update-reports.yml b/.github/workflows/update-reports.yml index 84feecc..964e4a3 100644 --- a/.github/workflows/update-reports.yml +++ b/.github/workflows/update-reports.yml @@ -8,11 +8,11 @@ on: jobs: reports: - uses: NASA-IMPACT/dse-oss-reports/.github/workflows/reports.yml@82a1ac63978b5440d0f0d1de83fc46419171bdb8 # v0.3.0 + uses: NASA-IMPACT/dse-oss-reports/.github/workflows/reports.yml@a78beaa16d31e93efda623da927c8daa3b62dae1 # v0.4.0 permissions: contents: write pull-requests: write with: - dse-oss-reports-ref: 82a1ac63978b5440d0f0d1de83fc46419171bdb8 + dse-oss-reports-ref: a78beaa16d31e93efda623da927c8daa3b62dae1 # v0.4.0 secrets: pat: ${{ secrets.GH_ODD_PAT }}