Merge pull request #35 from adamdrucker/2022-chages #80
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
name: build | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
buildpages: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: install | |
run: | | |
python3 -m pip install -U pip | |
python3 -m pip install -r requirements.txt | |
- name: add_path | |
run: | | |
echo "/home/runner/.local/bin" >> $GITHUB_PATH | |
- name: build | |
run: | | |
make html | |
touch _build/html/.nojekyll | |
ls -altr _build/html | |
- name: Install SSH Client | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.PRODUCTION_WEB_PAGE_DEPLOY }} | |
- name: deploy | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.PRODUCTION_WEB_PAGE_DEPLOY }} | |
SSH: true | |
BRANCH: main # The branch the action should deploy to. | |
FOLDER: _build/html # The folder the action should deploy. | |
CLEAN: false # Automatically remove deleted files from the deploy branch | |
REPOSITORY_NAME: mit-satori/mit-satori.github.io | |
ACCESS_TOKEN: ${{ secrets.PRODUCTION_WEB_PAGE_DEPLOY }} | |
TARGET_FOLDER: docs | |