Skip to content

Commit 34e0e2d

Browse files
authored
GitHub actions workflow to deploy the app (#68)
1 parent 7841538 commit 34e0e2d

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/fly.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Fly Deploy
2+
on:
3+
push:
4+
branches:
5+
- main
6+
env:
7+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
8+
9+
jobs:
10+
deploy:
11+
name: Deploy app
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: superfly/flyctl-actions/setup-flyctl@master
16+
- run: flyctl deploy --remote-only

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,9 @@ python manage.py runserver
4444
```
4545

4646
* If everything runs smoothly without any errors you should see the API live at http://127.0.0.1:8000/. Feel free to create an issue if run into problems while setting up the project.
47+
48+
## Deployment
49+
50+
Currently the demo-api is hosted on Fly.io. Whenever any branch is merged into the main branch a new deployment is triggered at [demo.scanapi.dev](https://demo.scanapi.dev/api/v1/) via GitHub Actions
51+
52+
You can check the status/activity log of the current deployment as well as the past ones [here](https://github.com/scanapi/demo-api/actions/).

0 commit comments

Comments
 (0)