Thanks to visit codestin.com
Credit goes to github.com

Skip to content

doc: Python - Fast API - Create your JSON API in Python in one minute #61

doc: Python - Fast API - Create your JSON API in Python in one minute

doc: Python - Fast API - Create your JSON API in Python in one minute #61

Workflow file for this run

name: Deploy blog on avonture.be
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
name: Deploy blog on avonture.be
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
# cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build website
run: yarn build
- name: Push files
uses: SamKirkland/[email protected]
with:
# See https://github.com/SamKirkland/FTP-Deploy-Action for allowed settings
server: ${{ secrets.ftp_server }}
username: ${{ secrets.ftp_login }}
password: ${{ secrets.ftp_password }}
# We need to deploy the build folder from GitHub to our FTP; not everything (f.i. don't need node_modules)
local-dir: ./build/