updated officers #100
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: Deploy To Production | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Install pip | |
run: /usr/bin/python3 -m pip install --upgrade pip | |
- name: Install setuptools | |
run: /usr/bin/python3 -m pip install --upgrade setuptools | |
- name: Install Mkdocs | |
run: /usr/bin/python3 -m pip install --upgrade mkdocs | |
- name: Install Minify Plugin | |
run: /usr/bin/python3 -m pip install --upgrade mkdocs-minify-plugin | |
- run: git fetch -p | |
name: Fetching all of the branches | |
- name: Deploy to website branch | |
run: /usr/bin/python3 -m mkdocs gh-deploy -b website | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Deploy to Production | |
uses: fifsky/ssh-action@master | |
with: | |
command: cd && cd www && git pull origin website | |
host: ${{ secrets.HOSTNAME }} | |
key: ${{ secrets.PRIVATE_KEY }} | |
port: ${{ secrets.PORT_NUMBER }} | |
user: ${{ secrets.USERNAME }} |