Skip to content

πŸš€ Deploy

πŸš€ Deploy #16

name: πŸš€ Deploy to Github Pages
on:
workflow_run:
workflows: ['πŸš€ Snapshots']
types:
- completed
jobs:
deploy-gh-pages:
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- name: Prepare demo before deploy from snapshots
run: |
git clone --depth 1 --branch snapshots/demo/v1.x ${{ env.REPO }} ${{ env.DIST }}
git clone --depth 1 --branch snapshots/demo/v2.x ${{ env.REPO }} ${{ env.DIST }}/v2
git clone --depth 1 --branch snapshots/demo/next/main ${{ env.REPO }} ${{ env.DIST }}/next
- name: Cleanup after clone snapshots
run: find ${{ env.DIST }} -name ".git" -exec rm -rf {} \; > /dev/null 2>&1 || echo "removed .git"
- name: Debug output
run: tree ${{ env.DIST }} -P '*.html'
- uses: taiga-family/ci/actions/deploy/[email protected]
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
folder: dist/demo/browser
concurrency:
group: deploy-gh-pages
cancel-in-progress: true