Skip to content

Instantly share code, notes, and snippets.

@josecelano
Last active September 10, 2021 12:06
Show Gist options
  • Save josecelano/383b5cc882452c0f9d77728863ec6d37 to your computer and use it in GitHub Desktop.
Save josecelano/383b5cc882452c0f9d77728863ec6d37 to your computer and use it in GitHub Desktop.
GitHub Workflow to deploy Svelte apps to GitHub Pages
# This is a basic workflow to automatically build a Svelte app and deploy it to GitHub Pages
name: Deploy to GitHub Pages
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install and Build
run: |
npm install
npm run build
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: public
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment