Skip to content

Instantly share code, notes, and snippets.

@simbo
Last active November 29, 2020 10:22
Show Gist options
  • 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/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: 🚚 Deploy
uses: JamesIves/[email protected]
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