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 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/checkout@v2.4.0 | |
- name: ๐ Install Python 3.8 | |
uses: actions/setup-python@v2.3.1 | |
with: | |
python-version: 3.8 | |
- name: โป๏ธ Create Python virtualenv | |
uses: syphar/restore-virtualenv@v1.2 | |
- 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/FTP-Deploy-Action@4.2.0 | |
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