Skip to content

Merge pull request #63 from CMU-17313Q/revert-62-dynamic-tool-install… #28

Merge pull request #63 from CMU-17313Q/revert-62-dynamic-tool-install…

Merge pull request #63 from CMU-17313Q/revert-62-dynamic-tool-install… #28

# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Build and deploy Node.js app to Azure Web App - nodebb-f24
on:
push:
branches:
- f24
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
#lint-and-test:
# uses:
#./.github/workflows/test.yaml
build-and-deploy:
if: github.repository == 'CMU-17313Q/nodebb-f24-pentagon'
#needs: lint-and-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js version
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Set up NodeBB
run: |
./nodebb setup '{"url":"https://nodebb-pentagon.azurewebsites.net:443",
"admin:username": "admin",
"admin:password": "${{ secrets.ADMIN_PASSWORD }}",
"admin:password:confirm": "${{ secrets.ADMIN_PASSWORD }}",
"admin:email": "[email protected]",
"database": "redis",
"redis:host": "${{ secrets.REDIS_HOST }}",
"redis:port": "6379",
"redis:password": "${{ secrets.REDIS_PASSWORD }}" }'
- name: 'Deploy to Azure Web App'
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'nodebb-pentagon'
slot-name: 'Production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_FDC8789F5F14479E9773BD27032F7A16 }}
package: .