Skip to content

Commit

Permalink
ci: add deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed Mar 13, 2024
1 parent e61f2ad commit b502b68
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 6 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,32 @@ jobs:
- run: npm ci
- run: npm test
- run: CHAINALYSIS_API_KEY=${{ secrets.CHAINALYSIS_API_KEY }} npm run test:integration
deploy:
if: github.ref == 'refs/heads/main'
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- if: failure()
uses: slackapi/slack-github-action@v1.25.0
with:
channel-id: filecoin-station-incidents
payload: |
{
"text": "Deployment of `${{ github.event.repository.name }}` failed",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":warning: *<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|Deployment of `${{ github.event.repository.name }}` failed>*"
}
}
]
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,3 @@ HTTP API for screening wallet addresses.
Reponses:
- `200 OK`
- `403 Forbidden`

## Deploy

```bash
$ fly deploy
```

0 comments on commit b502b68

Please sign in to comment.