Skip to content

Commit

Permalink
Adding config
Browse files Browse the repository at this point in the history
  • Loading branch information
hashp4 committed Oct 11, 2023
1 parent 2b5ce4e commit 79a7048
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/deploy.yml
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.110.0/hugo_extended_0.110.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 'dhij'
git config user.email '[email protected]'
git commit -m 'Updated site'
git push
Empty file added .hugo_build.lock
Empty file.
5 changes: 5 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
+++
4 changes: 4 additions & 0 deletions hugo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
baseURL: "https://milfctf.github.io/milfctf.com/"
languageCode: en-us
title: My New Hugo Site
theme: PaperMod

0 comments on commit 79a7048

Please sign in to comment.