create github action
add github action to autodeploy the api
This commit is contained in:
32
.github/workflows/main.yml
vendored
Normal file
32
.github/workflows/main.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Ik ben Henk angular ftp deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened, closed]
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
web-deploy:
|
||||
|
||||
name: Deploy Angular App
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Get latest code
|
||||
uses: actions/checkout@v2.3.2
|
||||
|
||||
- name: Sync Files
|
||||
uses: SamKirkland/FTP-Deploy-Action@4.0.0
|
||||
with:
|
||||
server: ${{ secrets.FTP_SERVER }}
|
||||
username: ${{ secrets.FTP_USER }}
|
||||
password: ${{ secrets.FTP_PASSWORD }}
|
||||
local-dir: ./PythonAuctionviewer/
|
||||
server-dir: ${{ variables.FTP_PYTHON_API_DIRECTORY }}
|
||||
#dangerous-clean-slate: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user