Skip to content

Production Build

Production Build #21

name: Staging Build
on:
workflow_run:
workflows: ['CI']
branches: ['main']
types:
- completed
jobs:
deploy:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: main
fetch-depth: 0
- name: Prepare Deploy
uses: ./.github/actions/prepare-deploy
with:
main-branch-name: main
app-configuration: production
nx-command: run-many
- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: deploy
commit_message: 'Staging deploy -- ${{ github.event.head_commit.message }}'