Merge pull request #57 from plezanje-net/fix-text-field-and-radio-group #100
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: deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: main | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Use Node 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18.x" | |
- name: List files in the repository | |
run: | | |
ls ${{ github.workspace }} | |
- name: Install and deploy | |
run: | | |
npm install | |
npm run build | |
sudo supervisorctl stop next | |
rm -rf /var/www/plezanjenet/web-next-prev | |
mv /var/www/plezanjenet/web-next /var/www/plezanjenet/web-next-prev | |
mkdir /var/www/plezanjenet/web-next | |
cp -r ./ /var/www/plezanjenet/web-next/ | |
sudo supervisorctl start next |