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

chore: use generic ubiquity .github/workflows/deploy.yml workflow #3

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 0 additions & 48 deletions .github/workflows/cloudflare-deploy.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/deploy-logger-page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy Log Web App to Cloudflare Worker

on:
workflow_run:
workflows: ["Conventional Commits"]
types:
- completed

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Deploy to Cloudflare Worker

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "20.8.0"

- name: Build TypeScript
run: npm install && npm run build

- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ secrets.CLOUDFLARE_PROJECT_NAME }}
directory: ${{ secrets.LOGGER_WEB_APP_DIRECTORY }}
# Enable Wrangler v3
wranglerVersion: "3"