Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GHA] Replacement tartifact actions #3186

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/api_changes_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ jobs:
issues: write
steps:
- name: Download built HTML doc as artifact from previous step
uses: alehechka/download-tartifact@1195216b256562056097b175df17b167557f8681 # v2
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: html_doc_artifact
- run: |
tar -xvf artifact.tar
rm artifact.tar
shell: 'bash'
- name: Checkout latest doc_pages branch tip
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
Expand Down
18 changes: 16 additions & 2 deletions .github/workflows/build_and_publish_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,29 @@ jobs:
steps:
- name: Checkout main repo # the github-pages-deploy-action seems to require this step
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6

- name: Download HTML doc build artifact
uses: alehechka/download-tartifact@1195216b256562056097b175df17b167557f8681 # v2
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: html_doc_artifact
- name: Extract artifact
shell: 'bash'
run: |
tar -xvf artifact.tar
rm artifact.tar

- name: Download schema doc build artifact
uses: alehechka/download-tartifact@1195216b256562056097b175df17b167557f8681 # v2
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: schema_doc_artifact
path: html_build/html
- name: Extract artifact
shell: 'bash'
working-directory: html_build/html
run: |
tar -xvf artifact.tar
rm artifact.tar

- name: Publish built docs on Github Pages branch ${{ env.GH_PAGES_BRANCH }}
uses: JamesIves/github-pages-deploy-action@5c6e9e9f3672ce8fd37b9856193d2a537941e66c # v4.6.1
with:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/build_html_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ jobs:
- name: Build API docs
run: |
sphinx-build -M html docs/api/source html_build
- name: Upload built HTMLs as job artifact
uses: alehechka/upload-tartifact@a055d3a102b9ed9cfff1263bc713295047d0197e # v2
- name: Archive built HTMLs
shell: bash
run: tar -czf artifact.tar html_build/html
- uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b #v4.5.0
with:
name: html_doc_artifact
path: html_build/html
path: artifact.tar
8 changes: 6 additions & 2 deletions .github/workflows/build_schema_page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ jobs:
# the sphinx can generate valid links in the TOC for the JSON schema across all pages.
generate-schema-doc --deprecated-from-description schema.json schema/index.html

- name: Archive built schema
shell: bash
run: tar -czf artifact.tar schema

- name: Upload result as artifact
uses: alehechka/upload-tartifact@a055d3a102b9ed9cfff1263bc713295047d0197e # v2
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b #v4.5.0
with:
name: schema_doc_artifact
path: schema
path: artifact.tar