Skip to content

Commit

Permalink
Update instructions and fix deploy issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
wpscholar committed Aug 6, 2021
1 parent 267aa62 commit 40394eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-cloudflare-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ jobs:
- name: Publish
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CLOUDFLARE_API_KEY }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@ as a parameter:
- [Fork](https://docs.github.com/en/get-started/quickstart/fork-a-repo) this repository into your own GitHub account.
- Clone your new repository onto your local machine.
- Run `npm install` from the project root to install dependencies.
- Create a [Global API Key](https://dash.cloudflare.com/profile/api-tokens) on Cloudflare.
- Run `gh secret set CLOUDFLARE_API_KEY` to set your Cloudflare API key as a secret on GitHub.
- Create an [API Token](https://dash.cloudflare.com/profile/api-tokens) on Cloudflare using the `Cloudflare Workers`
template.
- Run `gh secret set CLOUDFLARE_API_TOKEN` to set your Cloudflare API key as a secret on GitHub.
- Run `wrangler whoami` to get your Cloudflare Account ID.
- Run `gh secret set CLOUDFLARE_ACCOUNT_ID` to set your Cloudflare Account ID as a secret on GitHub.
- Run `gh secret set GH_USER` to set your GitHub user as a secret on GitHub.
Expand Down
3 changes: 2 additions & 1 deletion wrangler.example.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name = "wp-github-release-api"
type = "javascript"
account_id = ""
workers_dev = true
account_id = ""
zone_id = ""

[vars]
GITHUB_USER = ""

0 comments on commit 40394eb

Please sign in to comment.