Skip to content

fix(content): fix /running-apps link #59

fix(content): fix /running-apps link

fix(content): fix /running-apps link #59

Workflow file for this run

name: deploy docs preview
on:
pull_request:
branches: "main"
types: ['opened', 'synchronize', 'reopened', 'closed']
jobs:
deploy-preview:
runs-on: ubuntu-24.04
if: ${{ !github.event.pull_request.head.repo.fork }}
name: Build and deploy
steps:
- uses: actions/checkout@v4
- name: Setup `spin`
uses: fermyon/actions/spin/setup@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Install npm packages
run: |
npm ci
npm ci --prefix ./spin-up-hub
- name: Build app
run: |
spin build
- name: build and deploy preview
uses: fermyon/actions/spin/preview@v1
env:
# Create archive layers to consolidate the hundreds of static asset layers together
SPIN_OCI_ARCHIVE_LAYERS: 1
with:
fermyon_token: ${{ secrets.FERMYON_CLOUD_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
undeploy: ${{ github.event.pull_request && github.event.action == 'closed' }}