Simplify some language around Binion's. #154
This file contains 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 HTML to Production | |
on: | |
push: | |
branches: [ "main" ] | |
workflow_dispatch: | |
branches: [ "main" ] | |
jobs: | |
build-and-deploy-to-barge-dot-org: | |
runs-on: ubuntu-latest | |
environment: barge.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 production | |
- name: rsync 'public' to production host | |
if: ${{ github.ref == 'refs/heads/main' }} | |
uses: burnett01/[email protected] | |
with: | |
path: public/ | |
remote_host: ${{ secrets.HOST }} | |
remote_key: ${{ secrets.SSH_KEY }} | |
remote_path: /var/www/newbarge/ | |
remote_port: ${{ secrets.PORT }} | |
remote_user: ${{ secrets.USERNAME }} | |
switches: -avzr --delete --exclude=".??*,*~" |