Skip to content

Commit

Permalink
MAINT use github page to publish website
Browse files Browse the repository at this point in the history
  • Loading branch information
glemaitre committed Jun 25, 2024
1 parent a40e719 commit d328cc0
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/gh-publish-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,13 @@ jobs:
- name: Install dependencies
run: make install-ci

- name: sync website with rsync
env:
SSH_KEY: ${{ secrets.SSH_KEY }}
SSH_KNOWN_HOST: ${{ secrets.SSH_KNOWN_HOST }}
run: |
mkdir -p ~/.ssh
python3 write_key.py
chmod og-rwx ~/.ssh/id_rsa ~/.ssh/known_hosts
wc -l ~/.ssh/id_rsa ~/.ssh/known_hosts
ls -lh ~/.ssh
make rsync_upload
- name: Build website
run: make html

- name: Update the main gh-page website
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output
commit_message: "[ci skip] ${{ github.event.head_commit.message }}"

0 comments on commit d328cc0

Please sign in to comment.