diff --git a/.github/workflows/deploy-fly.yml b/.github/workflows/deploy-fly.yml new file mode 100644 index 0000000..f7c5a59 --- /dev/null +++ b/.github/workflows/deploy-fly.yml @@ -0,0 +1,10 @@ +name: deploy-fly +on: [push] +jobs: + main: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: superfly/flyctl-actions@1.0 + with: { args: deploy } + env: { FLY_API_TOKEN: "${{ secrets.FLY_API_TOKEN }}" } diff --git a/README.md b/README.md index eb29d90..e7df2d4 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,10 @@ ### デプロイ +#### Fly.io + +[`flyctl deploy`](https://fly.io/docs/speedrun/) + #### Heroku [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/kou029w/daraz-san) diff --git a/fly.toml b/fly.toml new file mode 100644 index 0000000..68e139c --- /dev/null +++ b/fly.toml @@ -0,0 +1,4 @@ +app = "daraz-san-kou029w" + +[build] + builder = "cloudfoundry/cnb:base"