Skip to content

Commit

Permalink
Workflow to deploy website
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitawootten-nist committed Apr 3, 2023
1 parent 3f401ef commit 650fb4d
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 228 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/generate-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Generate Website
on:
push:
branches:
- master
jobs:
build-and-push:
name: Build and Push `docs/` site
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
# Fetch all history for .GitInfo and .Lastmod
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.110.0"
extended: true
- name: Build
run: |
hugo --minify
working-directory: ./docs
- name: Deploy
uses: peaceiris/action-gh-pages@v3
# only deploy if on master branch
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.COMMIT_TOKEN }}
enable_jekyll: false
publish_dir: ./docs/public
publish_branch: nist-pages
commit_user_name: OSCAL GitHub Actions Bot
commit_user_email: oscal@nist.gov
commit_author: OSCAL GitHub Actions Bot <oscal@nist.gov>
commit_message: Deploying website [ci deploy skip]
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.hugo_build.lock
resources/_gen/
public/
228 changes: 0 additions & 228 deletions docs/deploy.sh

This file was deleted.

0 comments on commit 650fb4d

Please sign in to comment.