Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

wasp-lang/deploy-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

Action deprecated

Warning

This action is deprecated and will become oudated over time. We recommend switching your workflows to directly installing Wasp and running the wasp deploy command.

Example workflow for deploying the Wasp application to Fly using wasp deploy:

name: Wasp Deploy

on:
  push:
    branches:
      - main

jobs:
  deploy:
    name: Deploy to Fly.io
    runs-on: ubuntu-latest
    env:
      # You must add FLY_API_TOKEN to your Repository Secrets
      FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

    steps:
      - uses: actions/checkout@v5

      - name: Setup Node.js
        uses: actions/setup-node@v6
        with:
          node-version: '22'

      - name: Install Wasp
        run: curl -sSL https://get.wasp.sh/installer.sh | sh -s -- -v 0.19.0

      - name: Install Flyctl
        uses: superfly/flyctl-actions/setup-flyctl@master

      - name: Deploy
        run: wasp deploy fly deploy

Read more in the docs: https://wasp.sh/docs/deployment/deployment-methods/wasp-deploy/ci-cd

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.

Action Inputs

Get your API token from Fly.io

Setting a Custom Server URL

If you have configured a custom domain for your server, you can specify it as a repository secret named SERVER_URL. If this is not defined, Wasp will default to using the <app-name>-server.fly.dev address.

For detailed instructions on setting up repository secrets, visit: GitHub Docs: Creating Encrypted Secrets for a Repository.

Setting a Wasp Version

You can specify the version of Wasp to use for deployment by setting the wasp-version input. If this is not defined, Wasp will default to using the latest version.

Add the Action to your repo

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:
          # Required: Fly.io API token
          fly-token: ${{ secrets.FLY_TOKEN }}
          # Optional: Override the default Fly server URL with a custom domain
          server-url: ${{ secrets.SERVER_URL }}
          # Optional: Set the Wasp version to use, defaults to latest
          wasp-version: "0.16.0"

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

Contributors 2

  •  
  •