Skip to content

wrangler,lark client and github action (#1) #1

wrangler,lark client and github action (#1)

wrangler,lark client and github action (#1) #1

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
env:
REPOSITORY_NAME: ${{ github.event.repository.name }}
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- name: transform Repository variables to lower case
run: |
echo "REPOSITORY_NAME=${REPOSITORY_NAME@L}" >> "${GITHUB_ENV}"
- uses: actions/checkout@v4
- name: Deploy to CloudFlare
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
secrets: |
LARK_ID
LARK_SECRET
LARK_UPLOAD_KEY
vars: |
LARK_HOST
BUCKET_BASE_URL
command: |
whoami
r2 bucket create ${{ env.REPOSITORY_NAME }}
deploy --minify src/index.ts
env:
LARK_ID: ${{ secrets.LARK_ID }}
LARK_SECRET: ${{ secrets.LARK_SECRET }}
LARK_UPLOAD_KEY: ${{ secrets.LARK_UPLOAD_KEY }}
vars:

Check failure on line 41 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Deploy

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 41, Col: 9): Unexpected value 'vars'
LARK_HOST: ${{ vars.LARK_HOST }}
BUCKET_BASE_URL: ${{ vars.BUCKET_BASE_URL }}
- name: Print Deployment URL
env:
DEPLOYMENT_URL: ${{ steps.deploy.outputs.deployment-url }}
run: echo $DEPLOYMENT_URL