Skip to content

Commit

Permalink
cleanup and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej Niemcewicz committed Mar 28, 2024
1 parent a1bd887 commit 8016d03
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: Deploy Worker
name: Deploy Cloudflare Worker
on:
push:
pull_request:
repository_dispatch:
workflow_dispatch:

Expand All @@ -28,13 +26,9 @@ jobs:
npm install -g flotiq-cli
flotiq import . $GATSBY_FLOTIQ_API_KEY
fi
- run: npm install -g gatsby-cli
# - run: flotiq import . $GATSBY_FLOTIQ_API_KEY
- run: yarn install
- run: gatsby build
# env:
# GATSBY_FLOTIQ_API_KEY: ${{ secrets.GATSBY_FLOTIQ_API_KEY }}
- name: Build & Deploy Worker
uses: cloudflare/wrangler-action@v3
with:
Expand Down
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ Or to [Netlify](https://www.netlify.com/):

[![Deploy](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/flotiq/flotiq-gatsby-event-1)

Or [![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/mniemcewicz/flotiq-gatsby-event-1)
Or to [Cloudflare Workers](https://workers.cloudflare.com/):

[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/mniemcewicz/flotiq-gatsby-event-1)

## What's inside?

A quick look at the top-level files and directories you'll see in a Gatsby project.
Expand Down Expand Up @@ -144,6 +147,8 @@ A quick look at the top-level files and directories you'll see in a Gatsby proje
├── README.md
├── static.json
├── tailwind.config.js
├── worker-index.js
├── wrangler.toml
└── yarn.lock

1. **`.flotiq`**: This directory contains content types necessary to starter to work.
Expand Down Expand Up @@ -198,7 +203,11 @@ A quick look at the top-level files and directories you'll see in a Gatsby proje

26. **`tailwind.config.js`**: Configuration file for tailwind.

27. **`yarn.lock`**: This is an automatically generated file based on the exact versions of your yarn dependencies that were installed for your project. **(You won’t change this file directly).**
27. **`worker-index.js`**: Main file for Cloudflare Workers.

28. **`wrangler.toml`**: Configuration file for Cloudflare Workers deployment.

29. **`yarn.lock`**: This is an automatically generated file based on the exact versions of your yarn dependencies that were installed for your project. **(You won’t change this file directly).**

## Learning Gatsby

Expand Down

0 comments on commit 8016d03

Please sign in to comment.