Skip to content

Typo: 501(c)7 -> 501(c)(7). #165

Typo: 501(c)7 -> 501(c)(7).

Typo: 501(c)7 -> 501(c)(7). #165

name: Build and Deploy HTML to Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
branches: [ "main" ]
jobs:
build-and-deploy-to-test-dot-bjrge-dot-org:
runs-on: ubuntu-latest
environment: test.bjrge.org
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: checkout source
uses: actions/checkout@v4
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Hugo setup
uses: peaceiris/[email protected]
with:
hugo-version: 0.139.2
- name: build site with hugo
run: hugo --environment staging
- name: list public directory
run: find public -type f
# Note: Deploy _all_ changes, last one wins I guess?
- name: rsync 'public' to test host
uses: burnett01/[email protected]
with:
path: public/
remote_host: ${{ secrets.HOST }}
remote_key: ${{ secrets.SSH_KEY }}
remote_path: /home/timshow/test.bjrge.org
remote_user: ${{ secrets.USER }}
switches: -vzr --delete