Skip to content

ci: interscript-ts port is on main — clone main instead of the port b… #184

ci: interscript-ts port is on main — clone main instead of the port b…

ci: interscript-ts port is on main — clone main instead of the port b… #184

Workflow file for this run

name: deploy
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
build:
name: Build site
runs-on: ubuntu-latest
environment:
name: production
url: https://www.interscript.org
steps:
- uses: actions/checkout@v7
- name: Use Node
uses: actions/setup-node@v7
with:
node-version: "22"
cache: npm
- name: Clone interscript-ts (file: dependency)

Check failure on line 32 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 32
run: |
git clone --depth=1 --branch main https://github.com/interscript/interscript-ts.git ../interscript-ts
cd ../interscript-ts && npm ci && npm run build
- name: Install dependencies
run: npm ci
- name: Build site
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v5
with:
path: dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5