initial commit #14
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 with Bun | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
name: Deploy to Cloudflare Workers | |
steps: | |
# Step 1: Checkout the repository | |
- uses: actions/checkout@v4 | |
# Step 2: Install Bun | |
- name: Install Bun | |
run: | | |
curl -fsSL https://bun.sh/install | bash | |
echo "$HOME/.bun/bin" >> $GITHUB_PATH | |
echo "Bun installed successfully" | |
$HOME/.bun/bin/bun --version | |
# Step 3: Install Dependencies | |
- name: Install Dependencies | |
run: | | |
$HOME/.bun/bin/bun install | |
# Step 4: Deploy using wrangler-action | |
- name: Deploy | |
uses: cloudflare/wrangler-action@v3 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
packageManager: bun |