diff options
author | Victoria Drake <hello@victoria.dev> | 2020-03-01 21:59:15 +0300 |
---|---|---|
committer | Victoria Drake <hello@victoria.dev> | 2020-03-01 21:59:15 +0300 |
commit | e8364ee6fb1449222cfbe8ff98ead2a0e4bae1bd (patch) | |
tree | 44843eb480ae6ebbd92fbc66ddcbfb156b46a403 /.github | |
parent | b0b93c604c896a4f1d994d23feb6aa25f282a56f (diff) |
๐ฆ Accessibility improvementsv4.0
- Add content sectioning and aria roles to HTML
- Adjust confusing CSS class names
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build-to-docs.yml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/.github/workflows/build-to-docs.yml b/.github/workflows/build-to-docs.yml new file mode 100644 index 0000000..4befe78 --- /dev/null +++ b/.github/workflows/build-to-docs.yml @@ -0,0 +1,44 @@ +name: Build exampleSite to docs/ with hugo-latest-cd + +on: + push: + branches: + - master + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: ๐ Check out master + uses: actions/checkout@master + with: + fetch-depth: 1 + - name: ๐ง Install tools + run: sudo apt install curl jq + - name: ๐คต Install Hugo + run: | + HUGO_VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r '.tag_name') + mkdir tmp/ && cd tmp/ + curl -sSL https://github.com/gohugoio/hugo/releases/download/${HUGO_VERSION}/hugo_extended_${HUGO_VERSION: -6}_Linux-64bit.tar.gz | tar -xvzf- + sudo mv hugo /usr/local/bin/ + cd .. && rm -rf tmp/ + hugo version + - name: ๐งน Clean site + run: | + if [ -d "docs" ]; then + rm -rf docs/* + fi + - name: ๐ณ Build site + run: | + cd exampleSite + HUGO_THEME="hugo-theme-sam" hugo --themesDir ../.. -v -d ../docs/ + - name: ๐ Deploy build + run: | + git config user.name "${GITHUB_ACTOR}" + git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" + git add . + git commit -am "๐ Deploy with ${GITHUB_WORKFLOW}" + git push --all -f https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git +
\ No newline at end of file |