Skip to content

wasp-lang/deploy-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

deploy-action 🚀

Github Action to deploy with Wasp to Fly.io

How to setup Deploy on Push

Launch your app locally once ⚠️

  • You should first launch your app locally with wasp deploy fly launch <basename> <region>.
  • After your app is launched, make sure to commit the fly-server.toml and fly-client.toml files.

Get your API token from Fly.io

Add the token as a secret

Add your Fly.io token as a repository secret e.g. calling it FLY_TOKEN

Read more about how to do it: https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository

Add a Github Action

Create a file called deploy.yml in .github/workflows folder in your repo with this content:

name: Deploy to Fly

on:
  push:
    branches:
      - "main"
jobs:
  deploy:
    name: Deploy with Wasp
    runs-on: ubuntu-latest
    steps:
      - uses: wasp-lang/deploy-action@main
        with:
          fly-token: ${{ secrets.FLY_TOKEN }}

Notice that we are using the secrets.FLY_TOKEN so Wasp knows how to deploy.

About

Github Action to deploy with Wasp to Fly.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published