Skip to content

Commit

Permalink
Merge pull request #1 from amiremohamadi/ci
Browse files Browse the repository at this point in the history
deploy to cf workers
  • Loading branch information
amiremohamadi authored May 24, 2024
2 parents 58fbf4a + f6d5304 commit b085c4f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/cf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: cf workers

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest
environment: cf
steps:
- uses: actions/checkout@v4
- name: deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# tunl
a serverless v2ray tunnel

## Quick Start
## Deploy

### Easy Deploy (recommended)
click on the button below:

[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/amiremohamadi/tunl)

### Manually
1. [Create an API token](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/) from the cloudflare dashboard.
2. Create a `.env` file based on `.env.example` and fill the values based on your tokens

Expand Down

0 comments on commit b085c4f

Please sign in to comment.