Skip to content

Adjust landing page info #17

Adjust landing page info

Adjust landing page info #17

Workflow file for this run

name: Build & Publish
on: [ push, workflow_dispatch ]
jobs:
build:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- name: 📬 Checkout Repository
uses: actions/checkout@v3
- name: ✨ Setup Hugo
env:
HUGO_VERSION: 0.101.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 --minify -d $GITHUB_WORKSPACE/dist
- name: 🏃‍♂️ Run HtmlTest
continue-on-error: true
uses: wjdp/htmltest-action@master
with:
config: .htmltest.yml
- name: 🗄️ Archive Test Results
uses: actions/upload-artifact@v3
with:
name: htmltest-report
path: tmp/.htmltest/htmltest.log
retention-days: 7 # Default is 90 days
- name: 🚀 Publish to Webspace
uses: wangyucode/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
password: ${{ secrets.SSH_KEY }}
dryRun: false
forceUpload: true
localDir: './dist'
remoteDir: ${{ secrets.WEBSPACE_PATH }}