deploy.yaml (1231B)
1 name: Deploy 2 3 on: 4 push: 5 branches: 6 - main 7 workflow_dispatch: 8 9 env: 10 HUGO_VERSION: 0.160.1 11 DEPLOY_DIR: /var/www/davideisinger.com 12 DITHER_CACHE_DIR: /workspace-cache/dither 13 14 jobs: 15 deploy: 16 runs-on: ubuntu-latest 17 18 steps: 19 - name: Checkout 20 uses: actions/checkout@v4 21 22 - name: Setup Node 23 uses: actions/setup-node@v4 24 with: 25 node-version: 22 26 27 - name: Install packages 28 run: | 29 apt-get update 30 apt-get install -y curl imagemagick rsync ruby-full wget 31 wget --quiet https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb 32 apt-get install -y ./hugo_extended_${HUGO_VERSION}_linux-amd64.deb 33 gem install bundler 34 35 - name: Restore secret key 36 env: 37 SECRET_KEY: ${{ secrets.SECRET_KEY }} 38 run: | 39 printf '%s' "$SECRET_KEY" > secret.key 40 41 - name: Verify RSS template diff 42 run: ./bin/check-rss-template 43 44 - name: Spellcheck Markdown 45 run: npx -y cspell "content/**/*.md" 46 47 - name: Build site 48 run: ./bin/build 49 50 - name: Deploy site 51 run: ./bin/deploy-local "${DEPLOY_DIR}"