Merge pull request #8 from Ordina-Group/feat/new-logo-tag-event #33
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: Release | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
environment: | |
name: 'production' | |
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} | |
steps: | |
- uses: google-github-actions/release-please-action@v3 | |
id: release | |
with: | |
release-type: node | |
package-name: pythonconference | |
changelog-types: '[{"type":"feat","section":"New","hidden":false},{"type":"fix","section":"Changed and fixed","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false}]' | |
- uses: actions/checkout@v2 | |
if: ${{ steps.release.outputs.release_created }} | |
- name: Set up Node.js version | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '18.x' | |
if: ${{ steps.release.outputs.release_created }} | |
- name: npm install, build, and test | |
run: | | |
npm install | |
npm run build --if-present | |
if: ${{ steps.release.outputs.release_created }} | |
- name: 'Deploy to Azure Web App' | |
id: deploy-to-webapp | |
uses: azure/webapps-deploy@v2 | |
with: | |
app-name: 'PythonConference' | |
slot-name: 'production' | |
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_4E1202AD63FF43729109C7F4E9C1F6B0 }} | |
package: . | |
if: ${{ steps.release.outputs.release_created }} |