changed response format in /api/models #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Cloudflare Worker | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Replace Account ID | |
run: | | |
sed 's/REPLACE_WITH_ACCOUNT_ID/${{ secrets.CF_ACCOUNT_ID }}/' wrangler.template.toml > wrangler.toml | |
- name: Install Latest Wrangler | |
run: npm install -g wrangler | |
- name: Publish to Cloudflare | |
run: wrangler deploy | |
env: | |
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }} |