Skip to content

📦 Version++

📦 Version++ #24

Workflow file for this run

name: use-broadcast-ts deploy on pages
on:
push:
branches:
- main
paths:
- 'example/**'
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: example
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v3
- name: 🔧 Creating Node
uses: actions/setup-node@v3
with:
node-version: '18'
- name: ⚡Installing dependencies
run: npm install
- name: 📦 Build
run: npm run build
- name: Upload Artifacts 🔼
uses: actions/upload-artifact@v4
with:
name: site
path: example/dist
deploy:
concurrency: ci-${{ github.ref }}
needs: [build]
runs-on: ubuntu-latest
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v3
- name: 🔽 Download Artifacts
uses: actions/download-artifact@v1
with:
name: site
- name: 🚀 Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: 'site'