Merge pull request #60 from FoskyM/main #132
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 to production | |
on: | |
push: | |
branches: | |
- main | |
defaults: | |
run: | |
working-directory: worker | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
name: Deploy to Cloudflare Workers (Production) | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- uses: pnpm/action-setup@v2 | |
name: Install pnpm | |
id: pnpm-install | |
with: | |
version: 7 | |
run_install: true | |
- name: Build | |
run: pnpm build | |
- name: Publish | |
uses: cloudflare/[email protected] | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
# environment: "production" | |
workingDirectory: "worker" | |
command: publish --env production |