-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (25 loc) · 1013 Bytes
/
main.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
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Fly.io Deploy
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up flyctl
# You may pin to the exact commit or the version.
# uses: smoll/setup-flyctl@595e90c3776f063fcaa8865d51c9de449e8042cb
uses: smoll/[email protected]
with:
# Version of the flyctl CLI to install. If unspecified or set to "latest",
# the latest version for the target platform will be installed. Example: "0.0.306".
version: latest
- name: Deploy ${{ github.head_ref }}.${{ github.sha }}
- run: |
flyctl deploy -t ${{ secrets.FLYIO_ACCESS }}