Improve README #15
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 CSS | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Node.js version | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: 24 | |
| - name: npm install, build, and test | |
| run: npm ci | |
| - name: Upload artifact for deployment job | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: node-app | |
| path: . | |
| deploy: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Download artifact from build job | |
| uses: actions/download-artifact@v5 | |
| with: | |
| name: node-app | |
| - name: 'Deploy to Azure Web App' | |
| id: deploy-to-webapp | |
| uses: azure/webapps-deploy@v3 | |
| with: | |
| app-name: ${{ secrets.AZUREAPPSERVICE_NAME }} | |
| slot-name: 'Production' | |
| package: . | |
| publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE }} |