Skip to content

Publish a webpage hosted at umich from on a GitHub repository

License

Notifications You must be signed in to change notification settings

dctalbot/umich-afs-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This action will keep your remote personal webspace in sync with a GitHub repository.

Note: the entire public/html directory is replaced; remote files will be deleted if they are not present in GitHub.

There are two environment variables that must be set:

  1. UNIQNAME which can be a simple string
  2. SSHPASS which must be created as an encrypted secret

Example .github/workflows/main.yml

on:
  push:
    branches:
      - master
jobs:
  deploy:
    runs-on: ubuntu-latest
    name: checkout and rsync
    steps:
      - uses: actions/checkout@v2
      - uses: dctalbot/umich-afs-action@v2
        with:
          workspace-path: 'build'
        env:
          UNIQNAME: 'dctalbot'
          SSHPASS: ${{ secrets.SSHPASS }}