mirror of
https://github.com/movie-web/simple-proxy.git
synced 2025-09-13 09:03:26 +00:00
cloudflare deploy button
This commit is contained in:
32
.github/workflows/cloudflare.yml
vendored
Normal file
32
.github/workflows/cloudflare.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Deploy Worker
|
||||
|
||||
# this action is for the "deploy to cloudflare" button
|
||||
# repository_dispatch is triggered by CF
|
||||
# secrets should also be made by CF
|
||||
|
||||
on: ["repository_dispatch"]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install npm packages
|
||||
run: npm install
|
||||
|
||||
- name: Build Project
|
||||
run: npm run build:cloudflare
|
||||
|
||||
- name: Build & Deploy Worker
|
||||
uses: cloudflare/wrangler-action@v3
|
||||
with:
|
||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||
accountId: ${{ secrets.CF_ACCOUNT_ID }}
|
2
.github/workflows/linting.yml
vendored
2
.github/workflows/linting.yml
vendored
@@ -15,7 +15,7 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
|
Reference in New Issue
Block a user