Update confocal.md #44
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: Pages | |
on: | |
workflow_dispatch: | |
push: # only runs on commits to main branch (typically after a merge) | |
branches: | |
- main | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
environment: | |
name: Publish | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: 🛒 Checkout | |
uses: actions/checkout@v3 | |
- name: ✨ Setup Hugo | |
env: | |
HUGO_VERSION: 0.131.0 | |
run: | | |
mkdir ~/hugo | |
cd ~/hugo | |
curl -L "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz" --output hugo.tar.gz | |
tar -xvzf hugo.tar.gz | |
sudo mv hugo /usr/local/bin | |
- name: 🛠️ Build Site | |
run: hugo | |
- name: 🛠️ Configure Pages | |
uses: actions/configure-pages@v2 | |
- name: 📦 Upload Artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: "./public" | |
- name: 🚀 Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 | |
- name: 🔑 Load SSH Key | |
run: | | |
install -m 600 -D /dev/null ~/.ssh/id_rsa | |
echo "${{ secrets.PRIVATE_SSH_KEY }}" > ~/.ssh/id_rsa | |
- name: 🚀 Deploy to Website | |
run: rsync --archive --stats -e 'ssh -p 18765 -o StrictHostKeyChecking=no' public/ [email protected]:~/www/swharden.com/public_html/patch/ | |
- name: 🧹 Clear Cache | |
run: ssh [email protected] -p 18765 "site-tools-client domain update id=1 flush_cache=1" |