This repository has been archived by the owner on Dec 21, 2024. It is now read-only.
ci:test fix err #8
Workflow file for this run
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
on: | |
push: | |
tags: | |
- 'tweet-embed@*' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
deployments: write | |
name: Deploy to Cloudflare Pages | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Bun | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: latest | |
- name: Install dependencies | |
run: | | |
source /home/runner/.bashrc | |
cd tweet-embed | |
bun install | |
- name: Build the app | |
run: | | |
source /home/runner/.bashrc | |
cd tweet-embed | |
bun run build | |
- name: Publish To Cloudflare Pages | |
uses: cloudflare/pages-action@v1 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_PAGES_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
projectName: "tweet-embed" | |
directory: "build" | |
workingDirectory: "tweet-embed" | |
gitHubToken: ${{ secrets.GITHUB_TOKEN }} |