Merge pull request #8 from kj415j45/dependabot/npm_and_yarn/path-to-r… #34
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 | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
name: Deploy | |
environment: | |
name: official | |
url: https://log.kj415j45.space/ | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Write wrangler configure file | |
run: echo ${{ secrets.WRANGLER_FILE }} | base64 --decode > wrangler.toml | |
- name: Deploy | |
uses: cloudflare/wrangler-action@v3 | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
preCommands: | | |
wrangler d1 execute log --file=./schema.sql | |
env: | |
NO_D1_WARNING: true |