Skip to content

Commit

Permalink
ci: add fly.toml & deployment action
Browse files Browse the repository at this point in the history
  • Loading branch information
sitiom committed Jan 23, 2024
1 parent 21b48c9 commit 13676d8
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/fly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy to Fly

on:
push:
branches: ["main"]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Wait for other checks to succeed
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
running-workflow-name: deploy
repo-token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Listen to NEO LMS notifications from an email and forward it to a Discord webhoo

Create an `.env` file and configure the corresponding environment variables. See: [`.env.example`](./.env.example)

A `fly.toml` file is included for deployment to [fly.io](https://fly.io/).
A [`fly.toml`](./fly.toml) file is included for deployment to [fly.io](https://fly.io/).
4 changes: 4 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
app = "iacdiscordnotifs"
primary_region = "hkg"

[[services]]

0 comments on commit 13676d8

Please sign in to comment.