chore: bump version to 0.2.0 (first release of the rebuild) #38
This file contains hidden or 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 to Development' | |
| on: | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.ref }}-${{ github.workflow }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write # Grant write access to modify files and push changes | |
| jobs: | |
| build: | |
| name: 'Build' | |
| runs-on: self-hosted | |
| steps: | |
| - name: Build and Deploy. | |
| run: | | |
| cd /var/www/html/docker-gui | |
| git stash && git fetch origin && git checkout main && git pull | |
| export NVM_DIR=~/.nvm | |
| source ~/.nvm/nvm.sh | |
| PATH="/usr/local/go/bin/:$PATH" | |
| nvm install 22. | |
| nvm use 22 | |
| cp .env-dev .env | |
| npm i -g pm2 yarn | |
| yarn install | |
| yarn build | |
| yarn db:push | |
| pm2 delete pm2.json | |
| pm2 start pm2.json | |
| pm2 save |