publish app #24
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: publish app | |
on: | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: "Log level" | |
required: true | |
default: "warning" | |
type: choice | |
options: | |
- info | |
- warning | |
- debug | |
jobs: | |
FTP-Deploy-Action: | |
name: FTP-Deploy-Action | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🚚 Get latest code | |
uses: actions/checkout@v4 | |
#- name: Setup PHP | |
#uses: shivammathur/setup-php@v2 | |
#with: | |
#php-version: 8.2 | |
#- name: Install Composer dependencies | |
#run: composer install --prefer-dist --no-interaction | |
- name: Use Node.js 16 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
- name: 🔨 Build Project | |
run: | | |
npm install | |
npm run build | |
- name: FTP-Deploy-Action | |
uses: SamKirkland/[email protected] | |
with: | |
server: ${{ secrets.FTP_SERVER }} | |
username: ${{ secrets.FTP_USERNAME }} | |
password: ${{ secrets.FTP_PASSWORD }} |