feat: docker, documentation, automation, tailwind fixes, template, ut… #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |