Skip to content

Commit

Permalink
ci: add CLOUDFLARE_API_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
SegaraRai committed Jun 14, 2024
1 parent 31c17f8 commit db72d9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ jobs:
uses: actions/setup-node@v2
with:
# `actions/setup-node` can be configured to not set up Node.js by omitting the `node-version` field
cache: 'pnpm'
cache: "pnpm"

- name: Install dependencies
run: pnpm i

- name: Deploy using wrangler
run: pnpm wrangler deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
Weather.svg is a widget that displays weather information.
It is provided as a server that outputs an animated weather widget image in SVG format.


**Tsukuba, JP**
<img src="https://weather-svg.abelia.workers.dev/weather.svg?latitude=36.08297932646632&amp;longitude=140.11147093989302" alt="Weather in Tsukuba" style="width:100%" />

Expand Down Expand Up @@ -61,6 +60,9 @@ We recommend using [proto](https://moonrepo.dev/proto) to install tools.
See `src/server/bindings.ts` for the required secrets.
3. Run `pnpm wrangler deploy` to deploy your API server.

Make sure to add `CLOUDFLARE_API_TOKEN` to GitHub Actions secrets to deploy automatically.
See [Create an API token](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/) for more information.

## Contribution

Open an issue for any bug or feature request.
Expand Down

0 comments on commit db72d9d

Please sign in to comment.