Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MizuiMiduki authored Nov 16, 2023
1 parent 805f01b commit 5a96b27
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name : Auto deploy

on :
workflow_dispatch:
push:
branches:
- main

jobs :
deploy :
runs-on : ubuntu-latest

steps :
- name : checkout repository
uses : actions/checkout@v3

- name: SFTP Deploy
uses: wlixcc/[email protected]
with :
username: '${{ secrets.USER_NAME }}'
server : '${{ secrets.DEV_ELAIP }}'
ssh_private_key: ${{ secrets.PRIVATE_KEY }}
local_path : './*'
remote_path: '/usr/share/nginx/html'

0 comments on commit 5a96b27

Please sign in to comment.