Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-zherikov committed Feb 16, 2024
1 parent 0a9d2e3 commit 5784df6
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build Writerside docs using Docker
uses: JetBrains/writerside-github-action@v4
Expand All @@ -38,22 +38,27 @@ jobs:
artifact: ${{ env.ARTIFACT }}
docker-version: ${{ env.DOCKER_VERSION }}

- name: ls
run: find

- name: Upload documentation
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
working-directory: ./artifacts
with:
name: docs
retention-days: 7
path: |
artifacts/${{ env.ARTIFACT }}
artifacts/report.json
retention-days: 7
${{ env.ARTIFACT }}
report.json
# Add the step below to upload Algolia indexes
- name: Upload algolia-indexes
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
working-directory: ./artifacts
with:
name: algolia-indexes
path: artifacts/${{ env.ALGOLIA_ARTIFACT }}
retention-days: 7
path: ${{ env.ALGOLIA_ARTIFACT }}

# Add the job below and artifacts/report.json on Upload documentation step above
# if you want to fail the build when documentation contains errors
Expand All @@ -63,10 +68,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: docs
path: .

- name: ls
run: find
Expand All @@ -85,25 +89,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: docs
path: .

- name: ls
run: find

- name: Unzip artifact
run: unzip -O UTF-8 -qq artifacts/${{ env.ARTIFACT }} -d dir
run: unzip -O UTF-8 -qq ${{ env.ARTIFACT }} -d dir

- name: Setup Pages
uses: actions/configure-pages@v2
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: dir

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4

0 comments on commit 5784df6

Please sign in to comment.