Skip to content

deploy

deploy #61

Workflow file for this run

name: deploy
on:
push:
branches:
- main
workflow_dispatch:
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
- uses: DeLaGuardo/[email protected]
with:
bb: 0.8.157
cli: 1.10.3.1040
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- uses: superfly/flyctl-actions/setup-flyctl@master
- uses: actions/cache@v2
with:
path: ~/.m2
key: m2-${{ hashFiles('deps.edn') }}
- uses: actions/cache@v2
with:
path: ~/.gitlibs
key: gitlibs-${{ hashFiles('deps.edn') }}
- id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- run: git config --global credential.helper store && echo "https://${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com" > ~/.git-credentials
- run: bb js:deps
- run: bb clj:deps
- run: bb site:build
- run: bb docker:build
- run: bb fly:deploy