Skip to content

Commit

Permalink
ci: add workflow to automatically deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreBellas committed May 28, 2024
1 parent e594e8c commit b7a38c7
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy-files.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy to alebatistella.com
on:
push:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Upload via FTP
uses: airvzxf/ftp-deployment-action@latest
with:
server: ${{ secrets.FTP_SERVER }}
user: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local_dir: "./out"

0 comments on commit b7a38c7

Please sign in to comment.