-
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.
- Loading branch information
1 parent
866de0c
commit cd950d1
Showing
2 changed files
with
41 additions
and
1 deletion.
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,40 @@ | ||
name: Publish to GH Pages | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Checkout destination | ||
uses: actions/checkout@v3 | ||
if: github.ref == 'refs/heads/main' | ||
with: | ||
ref: gh-pages | ||
path: built-site | ||
|
||
- name: Setup Hugo | ||
run: | | ||
curl -L -o /tmp/hugo.tar.gz 'https://github.com/gohugoio/hugo/releases/download/v0.136.0/hugo_0.136.0_linux-amd64.tar.gz' | ||
tar -C ${RUNNER_TEMP} -zxvf /tmp/hugo.tar.gz hugo | ||
- name: Build | ||
run: ${RUNNER_TEMP}/hugo | ||
|
||
- name: Deploy | ||
if: github.ref == 'refs/heads/main' | ||
run: | | ||
cp -R public/* ${GITHUB_WORKSPACE}/built-site/ | ||
cd ${GITHUB_WORKSPACE}/built-site | ||
git add . | ||
git config user.name 'hash3liZer' | ||
git config user.email '[email protected]' | ||
git commit -m 'Updated site' | ||
git push |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
baseURL = 'https://example.org/' | ||
baseURL = 'https://team.airoverflow.com/' | ||
languageCode = 'en-us' | ||
title = 'My New Hugo Site' | ||
theme = 'nightfall' |