Andrew Woodlee
4b382bddd9
* Getting environment variables and passwords from Vault (not tested yet) * Vault configuration to config (not tested yet) * Ability to run scripts from file on local machine on the remote host * Ability to get ouput in the notification of a list for individual commands or all commands * Make SSH connections close after all commands have been run; reuse previous connections if needed
26 lines
781 B
YAML
26 lines
781 B
YAML
name: docs-build-deployment
|
|
|
|
on:
|
|
push: # Build on all pushes but only deploy for main branch
|
|
workflow_dispatch: # Allow this task to be manually started (you'll never know)
|
|
|
|
jobs:
|
|
deploy:
|
|
name: Run deploy
|
|
runs-on: ubuntu-latest
|
|
if: github.event_name != 'push' || (github.event_name == 'push' && github.ref == 'refs/heads/main')
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: true # Fetch Hugo themes (true OR recursive)
|
|
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
|
|
|
- name: Build site
|
|
uses: ./.github/actions/build_site
|
|
|
|
- name: Deploy site
|
|
uses: ./.github/actions/deploy_site
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|