Skip to content

Commit

Permalink
update readme about org token
Browse files Browse the repository at this point in the history
  • Loading branch information
som-matrix committed May 21, 2024
1 parent 5748803 commit 6d087d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ If you have an existing `fly.toml` in your repo, this action will copy it with a

`FLY_API_TOKEN` - **Required**. The token to use for authentication. You can find a token by running `flyctl auth token` or going to your [user settings on fly.io](https://fly.io/user/personal_access_tokens).

Note: If you have a team or organization account please create an org token, as auth token will not work here and set the value in `FLY_API_TOKEN`. We can create a token by running `fly tokens create org` or by going directly to your fly dashboard and then choose "Tokens" from the bottom left side.

## Basic Example

```yaml
Expand All @@ -39,8 +41,8 @@ on:

env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
FLY_REGION: iad
FLY_ORG: personal
FLY_REGION: <your region>
FLY_ORG: personal OR org name

jobs:
staging_app:
Expand Down

0 comments on commit 6d087d1

Please sign in to comment.