Skip to content

Commit

Permalink
chore: Update GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
areknawo committed Jul 3, 2024
1 parent 84e98a1 commit af4bf6a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ jobs:
permissions:
contents: read
deployments: write
name: Publish to Cloudflare Pages
name: Publish Vrite Docs to Cloudflare Pages
env:
PUBLIC_VRITE_SEARCH_TOKEN: F0OCwgqqI3aYDXehlhNBo:dt4OCRw5OsXtU_VcTB9o-
PUBLIC_VRITE_SEARCH_CONTENT_GROUP: 65d5f9a25a6b29a3ac69c65c
steps:
- name: Checkout
uses: actions/checkout@v3
- name: PNPM
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 8
- name: Build
run: pnpm install && pnpm run build --filter @vrite/docs
- name: Publish to Cloudflare Pages
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/publish-landing-page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on: [push, workflow_dispatch]

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Publish Vrite Landing Page to Cloudflare Pages
env:
VRITE_ACCESS_TOKEN: o3qiG1nPs_1kG17He8smz:OOdP6YHsBTUDv78dVPko5
VRITE_CONTENT_GROUP_ID: 640b816da3d81d99daed3475
steps:
- name: Checkout
uses: actions/checkout@v3
- name: PNPM
uses: pnpm/action-setup@v4
with:
version: 8
- name: Build
run: pnpm install && pnpm run build --filter @vrite/docs
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: vrite-landing-page
directory: apps/landing-page/dist

0 comments on commit af4bf6a

Please sign in to comment.