Created
January 12, 2022 06:32
-
-
Save filipgorczynski/ea68fa7f919da8b8c00a111d8ce17e11 to your computer and use it in GitHub Desktop.
.github workflow to deploy changes
This file contains hidden or 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
on: push | |
name: π Deploy blog posts on push | |
jobs: | |
web-deploy: | |
name: π Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: π¦ Code checkout | |
uses: actions/[email protected] | |
- name: π Install Python 3.8 | |
uses: actions/[email protected] | |
with: | |
python-version: 3.8 | |
- name: β»οΈ Create Python virtualenv | |
uses: syphar/[email protected] | |
- name: π¦ Install Python dependencies | |
run: pip install -r requirements.txt | |
- name: π· Build output | |
run: | | |
make html && make publish | |
rm -rf .vscode | |
rm -rf __pycache__ | |
rm -rf drafts | |
rm -rf scratchpads | |
rm -rf archive | |
- name: π FTP Deploy | |
uses: SamKirkland/[email protected] | |
with: | |
server: ${{ secrets.ftp_host }} | |
username: ${{ secrets.ftp_username }} | |
password: ${{ secrets.ftp_password }} | |
local-dir: ${{ secrets.localdir }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment