Add aliases for old bargechips.org URLs. #169
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 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 |