Skip to content

build: allow starting without local postgres #8

build: allow starting without local postgres

build: allow starting without local postgres #8

name: publish charts to github pages
on:
workflow_dispatch:
push:
paths:
- 'ops/**'
branches:
- main
jobs:
deployment:
name: Build & Deployment
runs-on: ubuntu-latest
steps:
- name: Checkout routr repo
uses: actions/checkout@v4
with:
path: routr
ref: gh-pages
- name: Save charts directory
run: |
mkdir -p /tmp/charts
cp -a routr/charts/* /tmp/charts
- name: Checkout repo
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Set up Helm
uses: azure/[email protected]
with:
version: latest
- name: Package charts
run: |
mv /tmp/charts charts
helm package ops/charts/connect -d charts
helm repo index charts --merge charts/index.yaml
- name: Build sources
run: mkdir -p public && mv charts public/charts
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.DEPLOY_KEY }}
publish_dir: ./public
publish_branch: gh-pages
keep_files: true