Skip to content

Commit

Permalink
Update deploy-documents.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shyunMin committed Jun 21, 2024
1 parent cd826d9 commit 31a3c40
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/deploy-documents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,29 @@ jobs:
./build_all.sh restore
./build_all.sh build
./build_all.sh index
- name: Archive Artifacts
run: |
tar cfz site.tar.gz _site/
- uses: actions/upload-artifact@v2
with:
name: documents
path: site.tar.gz

deploy:
needs: [build]
runs-on: ubuntu-20.04

steps:
- uses: actions/download-artifact@v2
with:
name: documents

- name: Extract Artifacts
run: |
tar xfz site.tar.gz
- name: Deploy GitHub Pages
- name: Deploy GitHub Pages Latest
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 31a3c40

Please sign in to comment.