Skip to content

Commit

Permalink
test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
EdyTheCow committed Apr 16, 2024
1 parent a314cb6 commit 8a27de0
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/web-deploy-photos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "Deploy (photos)"

on: [push]

jobs:
deploy:
runs-on: ubuntu-latest

defaults:
run:
working-directory: web

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
repository: ente-io/ente
submodules: recursive

- name: Setup node and enable yarn caching
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
cache-dependency-path: "web/yarn.lock"

- name: Install dependencies
run: yarn install

- name: Build photos
run: yarn build:photos

- name: Publish photos
uses: cloudflare/pages-action@1
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
projectName: ente-web-photos
branch: deploy/photos
directory: web/apps/photos/out
wranglerVersion: "3"

0 comments on commit 8a27de0

Please sign in to comment.