Skip to content

feat: docker, documentation, automation, tailwind fixes, template, ut… #4

feat: docker, documentation, automation, tailwind fixes, template, ut…

feat: docker, documentation, automation, tailwind fixes, template, ut… #4

Workflow file for this run

name: Deploy Ephemurl Site
on:
push:
branches:
- main
paths:
- "apps/site/**"
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- name: Checkout 🛎
uses: actions/checkout@v3
- name: Setup pnpm 🏗
uses: pnpm/action-setup@v3
with:
version: 8
- name: Install dependencies 👨🏻‍💻
run: pnpm install
- name: Run build
run: pnpm site build
- name: Publish
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ephemurl-site
directory: ./apps/site/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Log in to docker hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Build and push docker image
uses: docker/build-push-action@v5
with:
push: true
tags: jacobshuman/ephemurl-site