Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hivickylai/hugo-theme-sam.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictoria Drake <hello@victoria.dev>2020-03-01 21:59:15 +0300
committerVictoria Drake <hello@victoria.dev>2020-03-01 21:59:15 +0300
commite8364ee6fb1449222cfbe8ff98ead2a0e4bae1bd (patch)
tree44843eb480ae6ebbd92fbc66ddcbfb156b46a403 /.github
parentb0b93c604c896a4f1d994d23feb6aa25f282a56f (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.yml44
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