Skip to content

Commit

Permalink
fix CI, update wrangler
Browse files Browse the repository at this point in the history
  • Loading branch information
CiotkaCierpienia committed Apr 17, 2024
1 parent c3132a1 commit 59e5d42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,15 @@ jobs:
sed -i 's+workers_dev = true++g' wrangler.toml
echo "[env.production]" >> wrangler.toml
echo "route = 'flotiq.com/docs/*'" >> wrangler.toml
echo 'zone_id = '"'"$ZONE_ID"'" >> wrangler.toml
mkdir -p /home/runner/.wrangler/config/
echo api_token = '"'"$API_TOKEN"'"' > /home/runner/.wrangler/config/default.toml
cat wrangler.toml
wrangler publish --env=production
wrangler deploy --env=production
# Refresh sitemap in Google and Bing
curl "https://www.google.com/webmasters/sitemaps/ping?sitemap=https://flotiq.com/docs/sitemap.xml"
curl "https://www.bing.com/webmaster/ping.aspx?siteMap=https://flotiq.com/docs/sitemap.xml"
shell: bash
env:
API_TOKEN: ${{ secrets.API_TOKEN }}
ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }}
ZONE_ID: ${{ secrets.ZONE_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.API_TOKEN }}
7 changes: 3 additions & 4 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name = "cms-docs"
type = "webpack"
route = ''
zone_id = ''
usage_model = ''
compatibility_flags = []
workers_dev = true
site = {bucket = "./public",entry-point = "workers-site"}
site = {bucket = "./public"}
main = "workers-site/index.js"
usage_model="bundled"
compatibility_date = "2024-04-29"

0 comments on commit 59e5d42

Please sign in to comment.