Last active
September 10, 2021 12:06
-
-
Save josecelano/383b5cc882452c0f9d77728863ec6d37 to your computer and use it in GitHub Desktop.
GitHub Workflow to deploy Svelte apps to GitHub Pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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