hasgeek rustbangalore renamed #15
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: Deploy | |
# Deploy only when a change is pushed or merged to `main` | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
spin: | |
runs-on: ubuntu-latest | |
name: Build and deploy | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: 1.66 | |
targets: wasm32-wasi | |
- name: Install Spin | |
uses: fermyon/actions/spin/setup@v1 | |
- name: Build and deploy | |
uses: fermyon/actions/spin/deploy@v1 | |
with: | |
fermyon_token: ${{ secrets.FERMYON_CLOUD_TOKEN }} |