Skip to content

CD | Production Frontman #13

CD | Production Frontman

CD | Production Frontman #13

name: CD | Production Frontman
concurrency:
group: production-frontman
cancel-in-progress: true
on:
workflow_dispatch:
workflow_call:
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy-frontman:
name: Deploy on production
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Render USERS_CONFIGS secret into config/users_configs.yml
env:
USERS_CONFIGS: ${{ secrets.USERS_CONFIGS }}
shell: bash
run: |
echo "$USERS_CONFIGS" > config/users-configs.yml
- name: Render SERVERS secret into config/servers.yml
env:
SERVERS: ${{ secrets.SERVERS }}
shell: bash
run: |
echo "$SERVERS" > config/servers.yml
- name: Render SUPABASE secret into config/supabase.yml
env:
SUPABASE: ${{ secrets.SUPABASE }}
shell: bash
run: |
echo "$SUPABASE" > config/supabase.yml
- name: Run playbook
shell: bash
run: make render_users_configs
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'static'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
- uses: geekyeggo/delete-artifact@v2
if: always()
with:
name: github-pages
failOnError: false