Skip to content

Commit

Permalink
WIP: next
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMrMilchmann committed Mar 20, 2024
1 parent 6840111 commit 803043b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ concurrency:

env:
JDK_VERSION: "21"
DOCS_WORKSPACE_ARCHIVE: docs-workspace.tar
DOCS_WORKSPACE_ARTIFACT: docs-build-results
DOCS_BUNDLE: docs.bundle
DOCS_BUNDLE_ARTIFACT: docs-bundle
WORKSPACE_ARCHIVE: workspace.tar
WORKSPACE_ARTIFACT: build-results

Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git fetch gh-pages --depth=1
git fetch origin gh-pages --depth=1
- name: Get Version
id: version
Expand All @@ -134,14 +134,14 @@ jobs:
VERSION_NAME: ${{ steps.version.outputs.version }}
run: mike deploy -u $VERSION_NAME latest

- name: Tar files
run: tar --exclude='.git' -cvf ${{ env.DOCS_WORKSPACE_ARCHIVE }} .
- name: Create Bundle
run: git bundle create ${{ env.DOCS_BUNDLE }} gh-pages

- name: Upload workspace artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.DOCS_WORKSPACE_ARTIFACT }}
path: ${{ env.DOCS_WORKSPACE_ARCHIVE }}
name: ${{ env.DOCS_BUNDLE_ARTIFACT }}
path: ${{ env.DOCS_BUNDLE }}
retention-days: 1


Expand All @@ -158,13 +158,13 @@ jobs:
- name: Checkout
uses: actions/download-artifact@v4
with:
name: ${{ env.DOCS_WORKSPACE_ARTIFACT }}
name: ${{ env.DOCS_BUNDLE_ARTIFACT }}
path: .

- name: Untar
- name: Unpack git bundle
run: |
tar -xvf ${{ env.DOCS_WORKSPACE_ARCHIVE }}
rm ${{ env.DOCS_WORKSPACE_ARCHIVE }}
git fetch ${{ env.DOCS_BUNDLE }} gh-pages:gh-pages
git switch --force gh-pages
- name: Configure git
run: |
Expand Down

0 comments on commit 803043b

Please sign in to comment.