Update README.md #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 # リポジトリのコードをチェックアウト | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 # Node.jsのセットアップ | |
with: | |
node-version: '18' # 使用するNode.jsのバージョン | |
- name: Install dependencies | |
run: npm install | |
- name: Build the project | |
run: npm run build | |
- name: Upload files via FTP | |
uses: SamKirkland/FTP-Deploy-Action@4.3.0 | |
with: | |
server: ${{ secrets.FTP_SERVER }} | |
username: ${{ secrets.FTP_USERNAME }} | |
password: ${{ secrets.FTP_PASSWORD }} | |
local-dir: ./dist/ | |
server-dir: /tcu-animation/ | |
protocol: ftp | |