Skip to content

CI

CI #1442

Workflow file for this run

name: CI
on:
push: {}
pull_request: {}
workflow_dispatch: {}
schedule:
- cron: "0 0 * * *" # Every day at 00:00 UTC
jobs:
test_and_deploy:
name: Test and deploy
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Rust
run: |
rustup update stable
rustup override set stable
- name: Build static website
run: cargo run --release
- name: Deploy to production
uses: rust-lang/simpleinfra/github-actions/static-websites@master
with:
deploy_dir: output
github_token: "${{ secrets.github_token }}"
cloudfront_distribution: E3URKC86CEGJWE
aws_access_key_id: "${{ secrets.aws_access_key_id }}"
aws_secret_access_key: "${{ secrets.aws_secret_access_key }}"
if: github.ref == 'refs/heads/master'