Skip to content

Commit

Permalink
add deploy_mine
Browse files Browse the repository at this point in the history
  • Loading branch information
KubloPL committed Mar 23, 2024
1 parent 2956be8 commit f8d22b2
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/deploy_mine.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build site

on:
push:
# branches:
# - develop

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Deploy to SFTP
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.SFTP_SERVER }}
username: ${{ secrets.SFTP_USERNAME }}
password: ${{ secrets.SFTP_PASSWORD }}
local-dir: public
remote-dir: /path/to/remote/directory

- name: Trigger Webhook
run: |
curl -X POST -d '{}' ${{ secrets.WEBHOOK_URL }}

0 comments on commit f8d22b2

Please sign in to comment.