-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
37 lines (36 loc) · 1.02 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: "Wasp Deploy"
description: "Deploy with Wasp to Fly.io"
inputs:
fly-token:
description: "Fly.io API token"
required: true
server-url:
description: "Server URL for the React app"
required: false
wasp-version:
description: "Version of Wasp to use for deployment"
required: false
runs:
using: "composite"
steps:
- uses: actions/checkout@v4
- name: Install Wasp
shell: bash
run: |
VERSION_PARAM=""
if [ -n "${{ inputs.wasp-version }}" ]; then
VERSION_PARAM="-v ${{ inputs.wasp-version }}"
fi
curl -sSL https://get.wasp-lang.dev/installer.sh | sh -s -- $VERSION_PARAM
- name: Install Flyctl
uses: superfly/flyctl-actions/setup-flyctl@master
- name: Deploy
run: |
if [ -n "${{ inputs.server-url }}" ]; then
REACT_APP_API_URL=${{ inputs.server-url }} wasp deploy fly deploy
else
wasp deploy fly deploy
fi
shell: bash
env:
FLY_API_TOKEN: ${{ inputs.fly-token }}