Skip to content

Commit

Permalink
Initial commit (by Create-Cloudflare CLI)
Browse files Browse the repository at this point in the history
Add LastFm API support and automatic deploy setup

- Incorporated itty-router package to handle API routing
- Implemented LastFm router to handle API calls to LastFm
- Established Github Actions workflow file to deploy changes to the 'worker' branch
- Added environment variables for LastFm API in 'worker.ts', these variables will store LastFm's API Key and Shared Secret

These changes provide initial support for LastFm data integration and an automated deploy method to streamline future updates.
  • Loading branch information
vicr123 committed Aug 29, 2023
0 parents commit fd8d79c
Show file tree
Hide file tree
Showing 10 changed files with 1,991 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# http://editorconfig.org
root = true

[*]
indent_style = tab
tab_width = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.yml]
indent_style = space
17 changes: 17 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Deploy

on:
push:
branches:
- worker

jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v3
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"printWidth": 140,
"singleQuote": true,
"semi": true,
"useTabs": true
}
Loading

0 comments on commit fd8d79c

Please sign in to comment.