name: 'Docs' on: # This will run tests on pushes # to master branch and every monday: push: branches: - 'main' - 'master' - 'test-cache' schedule: - cron: '0 10 * * 1' jobs: build-docs: runs-on: ubuntu-latest env: LISP: sbcl-bin steps: - uses: actions/checkout@v1 - name: Grant All Perms on /usr/local/etc/roswell # This makes cache restoration possible run: | sudo mkdir -p /usr/local/etc/roswell sudo chown "${USER}" /usr/local/etc/roswell # Here the ros binary will be restored: sudo chown "${USER}" /usr/local/bin # - name: Get Current Month # id: current-month # run: | # echo "::set-output name=value::$(date -u "+%Y-%m")" # # use it as ${{ steps.current-month.outputs.value }} - name: Cache Roswell Setup id: cache uses: actions/cache@v2 env: cache-name: cache-roswell with: path: | /usr/local/bin/ros ~/.cache/common-lisp/ ~/.roswell /usr/local/etc/roswell .qlot key: "${{ runner.os }}-build2-${{ env.cache-name }}-${{ hashFiles('qlfile.lock') }}" - name: Restore Path To Cached Files run: | echo $HOME/.roswell/bin >> $GITHUB_PATH echo .qlot/bin >> $GITHUB_PATH if: steps.cache.outputs.cache-hit == 'true' - uses: 40ants/setup-lisp@test-cache if: steps.cache.outputs.cache-hit != 'true' - uses: 40ants/build-docs@v1 with: asdf-system: docs # ngrok-auth-token: ${{ secrets.NGROK_AUTH_TOKEN }}