diff options
| author | J08nY | 2022-04-27 12:48:19 +0200 |
|---|---|---|
| committer | J08nY | 2022-04-27 12:48:19 +0200 |
| commit | 102baeff083b664381f260c45d89e08db0544b51 (patch) | |
| tree | 82474465d4f6a4fd5c856d8f007d19c7c1edfcbe | |
| parent | 3049a55dd37a0fabf4f3116b512fdeb1e7218e62 (diff) | |
| download | sec-certs-102baeff083b664381f260c45d89e08db0544b51.tar.gz sec-certs-102baeff083b664381f260c45d89e08db0544b51.tar.zst sec-certs-102baeff083b664381f260c45d89e08db0544b51.zip | |
Add docs upload to workflow.
| -rw-r--r-- | .github/workflows/docs.yml | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index da1f7d10..d98305e8 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -3,7 +3,7 @@ on: push: workflow_dispatch: jobs: - docs: + build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -23,3 +23,25 @@ jobs: run: | cd docs make html + - name: Archive docs + run: | + cd _build/html + zip -r docs.zip * + cd ../.. + - name: Save docs artifact + uses: actions/upload-artifact@v3 + with: + name: docs + path: _build/html/docs.zip + upload: + runs-on: ubuntu-latest + needs: build + if: github.ref == "refs/heads/main" && github.repository == "crocs-muni/sec-certs" # Potentially change this into a check on release. + steps: + - name: Get docs artifact + uses: actions/download-artifact@v3 + with: + name: docs + - name: Push docs to website + run: | + curl -F data=@docs.zip https://seccerts.org/docs/upload?token=${{ secrets.DOCS_AUTH_TOKEN }} |
