0.209.2 #1243
Workflow file for this run
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: Deploy updated templates | |
| on: | |
| schedule: | |
| - cron: "0 2 * * *" # same time as nightly is triggered | |
| release: | |
| types: [created] | |
| workflow_dispatch: | |
| jobs: | |
| docupdate: | |
| name: Deploy updated templates | |
| runs-on: depot-ubuntu-24.04-arm | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| id: go | |
| - name: Build docs | |
| run: make install docs | |
| - name: Deploy to docs repo | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| personal_token: ${{ secrets.DOCS_DEPLOY_TOKEN }} | |
| publish_dir: ./templates/docs | |
| external_repository: evcc-io/docs | |
| publish_branch: main | |
| destination_dir: ${{ github.event_name == 'release' && 'templates/release' || github.event_name == 'schedule' && 'templates/nightly' || 'templates/unknown_trigger' }} | |
| allow_empty_commit: false | |
| commit_message: ${{ github.event_name == 'release' && 'Templates update for release' || github.event_name == 'schedule' && 'Templates update for nightly' || 'Templates update unknown trigger' }} | |
| if: success() |