-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GitHub actions yml #9
Add GitHub actions yml #9
Conversation
…f werk deze bij vanuit Azure Portal.
…ster_nldsreactstorybook.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also include CD in this pull request @mjcarsjens @Test-Automation-Engineer?
@GewoonMaarten as stated before during our weekly, this was the initial setup so we could build and deploy to Azure webapps from Github instead of Azure Pipelines and improvements had to be made later. |
@GewoonMaarten @mjcarsjens on:
push:
branches:
- development
- master
pull_request:
branches:
- development
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js version
uses: actions/setup-node@v2
with:
node-version: '14.x'
- name: yarn install, build storybook
run: |
npm install -g yarn
yarn install
yarn build-storybook
deploy-staging:
if: github.ref == 'refs/heads/development'
runs-on: ubuntu-latest
steps:
- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2
with:
app-name: 'nldsreactstorybook-staging'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_Nlds_Staging }}
package: storybook-static
deploy-production:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2
with:
app-name: 'nldsreactstorybook'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_Nlds_Prod }}
package: storybook-static |
No description provided.