Skip to content

ci: added deploy workflow #1

ci: added deploy workflow

ci: added deploy workflow #1

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
- 'renovate/**'
paths-ignore:
- '**.md'
- '.gitignore'
- 'assets/**'
- '.github/**'
- '!.github/workflows/deploy.yml'
workflow_dispatch:
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
- name: Setup Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 18
cache: pnpm
- name: Configure GitHub Pages
uses: actions/[email protected]
with:
static_site_generator: sveltekit
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run build
- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
path: dist
- name: Deploy GitHub Pages site
id: deployment
uses: actions/[email protected]
if: github.event_name == 'push' && github.ref == 'refs/heads/main'