Production Nightly Build #286
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: Production Nightly Build | |
on: | |
schedule: | |
- cron: 20 4 * * * | |
workflow_dispatch: | |
jobs: | |
site: | |
runs-on: ubuntu-latest | |
name: Build Documentation | |
environment: | |
name: Production | |
url: https://documentation.breadnet.co.uk | |
steps: | |
- name: Git Clone | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Fly Build and Deploy | |
uses: userbradley/[email protected] | |
with: | |
flyToken: ${{ secrets.FLY_ACCESS_TOKEN_PROD }} | |
configFile: ${{ vars.CONFIG_FILE }} | |
open-issue: | |
runs-on: ubuntu-latest | |
name: Open GitHub issue on failure | |
if: failure() | |
needs: [site] | |
steps: | |
- name: Create issue | |
uses: peter-evans/[email protected] | |
with: | |
title: Nightly build failed | |
labels: Broken Nightly Build |