Update actions.yml #14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Deploy of Static Site | |
| on: | |
| push: | |
| jobs: | |
| build: | |
| name: Build and Deploy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Python Setup | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.13 | |
| - name: MkDocs Setup | |
| run: pip install mkdocs | |
| - name: Build | |
| run: mkdocs build | |
| - name: Install SSH key | |
| run: | | |
| install -m 600 -D /dev/null ~/.ssh/id_rsa | |
| echo "${{ secrets.PRIVATE_SSH_KEY }}" > ~/.ssh/id_rsa | |
| echo "${{ secrets.KNOWN_HOSTS }}" > ~/.ssh/known_hosts | |
| - name: Deploy | |
| run: mkdocs gh-deploy --force | |
| # run: rsync --archive --stats site/ ${{ secrets.REMOTE_DEST }} | |
| # root@__IP_ADDR__:/var/www/html | |