Skip to content

Delete static/.well-known directory #25

Delete static/.well-known directory

Delete static/.well-known directory #25

Workflow file for this run

name: Publish Website
on:
push:
branches: [ master ]
#workflow_dispatch:
jobs:
build-website:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup GPG
run: |
echo "${{secrets.SIGN_KEY}}" > /tmp/key.asc
gpg --import /tmp/key.asc
- name: Prepare git
run: |
git config user.name "TheSecurityVault Build Action"
git config user.email "<>"
git config user.signingKey 0A6E4D808451103C
- name: Get Hugo
run: |
curl -L https://github.com/gohugoio/hugo/releases/download/v0.92.2/hugo_extended_0.92.2_Linux-64bit.tar.gz --output /tmp/hugo.tar.gz
tar -zxf /tmp/hugo.tar.gz -C /tmp
echo "694bcb7242a72b355538be796681f28c5ba4d6ea10e6b86cea21238b61dacb70 /tmp/hugo" | shasum -c
- name: Build Website
run: |
# build website with Hugp
/tmp/hugo
# move build version to temp
mv public /tmp
# Checkout the gh-page branch (where the prod version is)
git fetch origin
git checkout gh-pages
mv .git /tmp
# Delete all files JIC
rm -rf .[!.] .??*
rm -rf *
# Move back the git folder and built version of the site
mv /tmp/.git .
mv /tmp/public/* .
# Fix feed path to be compatible with old wordpress site
mkdir feed
cp feed.xml feed/index.xml
# Commit changes
git add .
git commit -S -m "Build Version for $GITHUB_SHA"
git push origin gh-pages