Skip to content

Build, Run & Deploy #2293

Build, Run & Deploy

Build, Run & Deploy #2293

Workflow file for this run

name: Build, Run & Deploy
on:
schedule:
- cron: "0 23,17,11,5 * * *" # Runs at 9am (daylight savings or 10 am non-daylight savings).
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Rust Build & Run
uses: actions/checkout@v2
- name: Make env
uses: SpicyPizza/[email protected]
with:
envkey_ORG_KEY: ${{ secrets.ORG_KEY }}
envkey_DW_KEY: ${{ secrets.DW_KEY }}
envkey_AWS_ORG_KEY: ${{ secrets.AWS_ORG_KEY }}
- run: sudo timedatectl set-timezone Australia/Sydney
- run: cargo run
- name: Make PDF Report
uses: xu-cheng/latex-action@v2
with:
working_directory: page/pdf/src
root_file: report.tex
- name: Upload PDF Report
uses: actions/upload-artifact@v2
with:
name: clyde-water-quality-report.pdf
path: page/pdf/src/report.pdf
- name: Deploy GH Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: page # The folder the action should deploy.