-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a GPT, broken, config for deploying the site
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
name: Deploy Website | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Check out the code | ||
# TODO: Use newer checkout version. | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
# Set up SSH | ||
# TODO: Use newer SSH connection | ||
# This is a GPT hallucination, probably. | ||
- name: Setup SSH connection | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
# Run Hugo on the server to build the site | ||
- name: Build Site with Hugo | ||
run: | | ||
# TODO: needs to build with Hugo v0.80.0 | ||
ssh [email protected] "cd ~/denseanalysis-org && hugo" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
|
||
extends: default | ||
ignore: | | ||
.git |