Skip to content

feat: upgrade rust.yml #65

feat: upgrade rust.yml

feat: upgrade rust.yml #65

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- name: Version
run: cargo --version --verbose
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Apply migrations
uses: Odonno/[email protected]
with:
address: ${{ secrets.SURREAL_ADDRESS }}
ns: ${{ secrets.SURREAL_NS }}
db: ${{ secrets.SURREAL_DB }}
username: ${{ secrets.SURREAL_USERNAME }}
password: ${{ secrets.SURREAL_PASSWORD }}
version: v2.0.0-preview.3
- name: Deploy to DigitalOcean
uses: digitalocean/app_action@v1 # switch to v2 after https://github.com/digitalocean/app_action/issues/123
with:
app_name: blog
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}