Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
add ci action for tweet-embed
Browse files Browse the repository at this point in the history
  • Loading branch information
khafidprayoga committed Sep 22, 2024
1 parent 7ca12ae commit a4c5324
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/my-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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: Install Bun
run: |
curl -fsSL https://bun.sh/install | bash
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
bun --version # Check Bun version to ensure it's installed
- name: Install dependencies
run: |
cd tweet-embed
bun install
- name: Build the app
run: |
cd tweet-embed
bun install
- 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 }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# github action act local secret
.secrets

0 comments on commit a4c5324

Please sign in to comment.