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
// [...] | |
steps: | |
// [...] | |
- name: Deploy to Netlify | |
uses: nwtgck/actions-netlify@v1.1 | |
with: | |
publish-dir: './build' | |
production-branch: master | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
deploy-message: "Deploy from GitHub Actions" |
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
// [...] | |
steps: | |
- name: Inject slug/short variables | |
uses: rlespinasse/github-slug-action@v2.x | |
- name: Download artifact | |
uses: actions/download-artifact@v2 | |
with: | |
name: ng9-github-actions-netlify-${{ env.GITHUB_REF_SLUG }}-${{ github.run_id }}-${{ github.run_number }} | |
path: './build' |
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
// [...] | |
test: | |
runs-on: ubuntu-latest | |
steps: |
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
// [...] | |
steps: | |
// [...] | |
- name: Inject slug/short variables | |
uses: rlespinasse/github-slug-action@v2.x | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ng9-github-actions-netlify-${{ env.GITHUB_REF_SLUG }}-${{ github.run_id }}-${{ github.run_number }} | |
path: ./dist/ng9-github-actions-netlify |
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
// [...] | |
steps: | |
// [...] | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ng9-github-actions-netlify-${{ github.ref }}-${{ github.run_id }}-${{ github.run_number }} | |
path: ./dist/ng9-github-actions-netlify |
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
// [...] | |
steps: | |
// [...] | |
- name: Build app | |
run: npm run build:prod |
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
"build:prod": "ng build --prod", |
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
// [...] | |
steps: | |
// [...] | |
- name: Unit tests | |
run: npm run test:ci | |
- name: E2E | |
run: npm run e2e:ci |
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
// [...] | |
steps: | |
// [...] | |
- name: Lint | |
run: npm run lint |
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
// [...] | |
steps: | |
// [...] | |
- name: Install dependencies | |
run: npm install |
NewerOlder