fix: inline query and table parser #32
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 | |
- dev | |
workflow_dispatch: | |
permissions: | |
deployments: write | |
contents: read | |
pages: write | |
actions: write | |
id-token: write | |
concurrency: | |
group: build-${{ github.ref_name }} | |
cancel-in-progress: false | |
jobs: | |
lint: | |
name: Lint Workflow | |
uses: ./.github/workflows/lint.yml | |
build: | |
name: Build Job | |
needs: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: appleboy/ssh-action@v0.1.7 | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
username: ${{ secrets.SSH_USERNAME }} | |
key: ${{ secrets.SSH_KEY }} | |
port: ${{ secrets.SSH_PORT }} | |
script: | | |
cd ${{ secrets.SSH_PATH }}/${{ github.ref_name == 'dev' && 'dev' || 'prod' }} | |
git pull | |
npm ci | |
npm run build | |
pm2 restart ${{ github.ref_name == 'dev' && 'ttg-club-telegram-dev' || 'ttg-club-telegram' }} |