Skip to content

chore: add parameters names and default values for cheatsheet #85

chore: add parameters names and default values for cheatsheet

chore: add parameters names and default values for cheatsheet #85

name: Production
on:
push:
branches:
- main # Set a branch to deploy
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
env:
CI_COMMIT_MESSAGE: Continuous Integration Build Artifacts
CI_COMMIT_AUTHOR: Continuous Integration
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.91.2'
extended: true
- name: Build
run: hugo --minify
# Commit and push all changed files.
- name: GIT Commit Build Artifacts (coverage, dist, devdist, docs)
# Only run on main branch push (e.g. after pull request merge).
if: github.event_name == 'push'
run: |
mv public /tmp
rm -rf *
git checkout -f build
cp -av /tmp/public/* .
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "username@users.noreply.github.com"
git add *.html *.js categories codes drafts font fonts img posts *.txt *xml *.css *.map tags
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
git push -f