This repository was archived by the owner on Dec 15, 2025. It is now read-only.
Update troubleshooting section (#192) #52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish docs | |
| # Run this workflow on push to 1.x (e.g. on merge of PR to 1.x) | |
| on: | |
| push: | |
| branches: | |
| - 1.x | |
| jobs: | |
| # Set the job key. The key is displayed as the job name | |
| # when a job name is not provided | |
| build-docs: | |
| # Name the Job | |
| name: Publish documentation | |
| # Set the type of machine to run on | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Configures global Git variables for committing | |
| - name: Configure Git | |
| run: | | |
| git config --global user.email "sysadm@codeenigma.com" | |
| git config --global user.name "Code Enigma CI" | |
| # Installs the ce-dev stack | |
| - name: Install ce-dev | |
| run: | | |
| cd /tmp | |
| wget https://golang.org/dl/go1.15.8.linux-amd64.tar.gz | |
| sudo tar -C /usr/local -xzf go1.15.8.linux-amd64.tar.gz | |
| export PATH=$PATH:/usr/local/go/bin | |
| git clone https://github.com/FiloSottile/mkcert && cd mkcert | |
| go build -ldflags "-X main.Version=$(git describe --tags)" | |
| sudo mv ./mkcert /usr/local/bin && cd ../ | |
| sudo chmod +x /usr/local/bin/mkcert | |
| rm -Rf mkcert | |
| curl -sL https://raw.githubusercontent.com/codeenigma/ce-dev/1.x/install.sh | /bin/sh -s -- linux | |
| # Uses the ce-dev stack to run Hugo to format and deploy the docs | |
| - name: Publish documentation | |
| run: | | |
| cd | |
| git clone https://github.com/codeenigma/wikis2pages.git | |
| cd wikis2pages | |
| /bin/bash init.sh https://${{ secrets.GITHUB_TOKEN }}@github.com/codeenigma/ce-dev.git 1.x | |
| /bin/sh set-current.sh ce-dev-local | |
| docker exec --user ce-dev --workdir /home/ce-dev/deploy/live.local wikis2pages-hugo hugo | |
| /bin/sh .github-actions-push.sh | |
| cd /home/runner/wikis2pages/public/ce-dev-local | |
| git remote add ci https://${{ secrets.DOCS_GITHUB_TOKEN }}@github.com/codeenigma/ce-dev-docs.git | |
| git push ci master | |
| shell: bash |