Skip to content

Commit

Permalink
Setting up the main website deployment workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-waltermire committed Jun 7, 2021
1 parent 47f736f commit 6244d44
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@ on:
push:
branches:
- main
- develop
paths:
- 'docs/**'
- '.github/workflows/website.yml'
- '.github/workflows/website-deploy.yml'
workflow_dispatch:
branches:
- main
- develop
name: Build and Publish Website
env:
# the name of the repo
HOME_REPO: usnistgov/OSCAL
HOME_BRANCH: develop
HOME_BRANCH: main
# dependency versions
HUGO_VERSION: 0.83.1
# build-specific environment
Expand Down Expand Up @@ -75,9 +73,9 @@ jobs:
# run: |
# cd "${OSCAL_WEBSITE_PATH}"
# bundle exec htmlproofer public/ --check-external-hash --url-swap "https\://pages.nist.gov/OSCAL/:/" --assume-extension --log-level :debug --url-ignore "\/reference\//,/pages.nist.gov\/(?:nist-header-footer|leaveNotice)\/.+/"
# - name: Run deploy script
# if: ${{ github.repository == env.HOME_REPO && github.ref == format('refs/heads/{0}',env.HOME_BRANCH) }}
# run: |
# cd "$OSCAL_WEBSITE_PATH"
# git config user.name "Deployment Bot"
# bash ./deploy.sh --push-only -v -m "Deploying website [ci deploy skip]"
- name: Run deploy script
if: ${{ github.repository == env.HOME_REPO && github.ref == format('refs/heads/{0}',env.HOME_BRANCH) }}
run: |
cd "$OSCAL_WEBSITE_PATH"
git config user.name "Deployment Bot"
bash ./deploy.sh --push-only -v -m "Deploying website [ci deploy skip]"
4 changes: 2 additions & 2 deletions versioning-and-branching.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ git push --set-upstream upstream release-1.2
Once the release is ready, the release can be made using the following Git commands:

```
git checkout master
git checkout main
git merge --no-ff release-1.2
git tag -a 1.2.0
git push --follow-tags
Expand All @@ -72,7 +72,7 @@ Patch releases for a given MAJOR.MINOR version will be marked by annotated tags.
Once a patch release is ready, the release can be made using the following Git commands:

```
git checkout master
git checkout main
git merge --no-ff release-1.2
git tag -a 1.2.1
git push --follow-tags
Expand Down

0 comments on commit 6244d44

Please sign in to comment.