mirror of
https://github.com/bckelley/terminal-portfolio.git
synced 2026-08-24 03:24:13 -05:00
28 lines
655 B
YAML
28 lines
655 B
YAML
name: Deploy to GitHub Pages
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install dependencies
|
|
run: npm install
|
|
- name: Build your website
|
|
run: npm start
|
|
- name: Copy files to deploy branch
|
|
run: |
|
|
mkdir -p public
|
|
cp -r ./* public
|
|
- name: Commit and push to deploy branch
|
|
run: |
|
|
git config user.name "GitHub Actions"
|
|
git config user.email "actions@github.com"
|
|
git add -A
|
|
git commit -m "Deploy to GitHub Pages"
|
|
git push origin HEAD:deploy
|