Skip to content

update workflow actions versions #5

update workflow actions versions

update workflow actions versions #5

name: "Deploy Ente Photos (Web)"
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: NEXT_PUBLIC_ENTE_ENDPOINT=${{ secrets.API_ENDPOINT_URL }} 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"