Files
spark/.github/workflows/ci-deploy-site.yml
T
Workflow config file is invalid. Please check your config file: model.ReadWorkflow: yaml: unmarshal errors: line 19: cannot unmarshal !!seq into string
Diego Marcos Segura 9a316f5dcb Automate site deployment
2025-06-16 19:25:23 -07:00

42 lines
1022 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: Deploy site
on:
push:
branches:
- main # Or your default branch
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ['22.x']
- name: Install dependencies
run: npm install
- name: Build Site
run: npm run site:build
- name: Generate GitHub App token
id: generate-token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Deploy to site gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
external_repository: sparkjsdev/sparkjsdev.github.io
publish_branch: main
publish_dir: ./site
github_token: ${{ steps.generate-token.outputs.token }}
commit_message: "Deploy Spark site – ${{ github.sha }}"