Skip to content

Instantly share code, notes, and snippets.

@simbo
Last active November 29, 2020 10:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simbo/23db07753be7c5410707341386ff5081 to your computer and use it in GitHub Desktop.
Save simbo/23db07753be7c5410707341386ff5081 to your computer and use it in GitHub Desktop.
GitHub Actions Workflow to deploy User or Organization Pages
name: CI
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 🛎 Checkout
uses: actions/checkout@v2
# add your test and build pipeline here
- name: 🔑 Prepare SSH Client
uses: webfactory/ssh-agent@v0.4.1
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: 🚚 Deploy
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
SSH: true
REPOSITORY_NAME: myself/awesome-page
BRANCH: master
FOLDER: dist
CLEAN: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment