This repository has been archived by the owner on Oct 28, 2024. It is now read-only.
make docker build show progress #103
This file contains 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: docs | |
jobs: | |
build: | |
container: | |
image: ruby:2.7 | |
env: | |
SSH_AUTH_SOCK: /tmp/ssh_agent.sock | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v1 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-docgems-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: ${{ runner.os }}-docgems- | |
- name: setup | |
run: | | |
cd docs | |
bundle install | |
- name: setkeys | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.DEPLOY_KEY }} | |
known_hosts: ${{ secrets.KNOWN_HOSTS }} | |
- name: build | |
shell: bash | |
run: | | |
if [[ ${GITHUB_REF##*/} == 'master' ]]; then | |
ROOT_DIR=/ | |
else | |
ROOT_DIR=/branches/${GITHUB_REF##*/} | |
fi | |
cd docs | |
git config --global user.email "[email protected]" | |
git config --global user.name "dsiaw+kaiserdocs" | |
ROOT_DIR=$ROOT_DIR bash deploy-docs.sh | |
'on': | |
push: | |
branches: | |
- '*' |