Skip to content

Instantly share code, notes, and snippets.

View smarlhens's full-sized avatar
💻
Learning new stuff

Samuel MARLHENS smarlhens

💻
Learning new stuff
View GitHub Profile
// [...]
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"
// [...]
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'
// [...]
test:
runs-on: ubuntu-latest
steps:
// [...]
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
// [...]
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
// [...]
steps:
// [...]
- name: Build app
run: npm run build:prod
"build:prod": "ng build --prod",
// [...]
steps:
// [...]
- name: Unit tests
run: npm run test:ci
- name: E2E
run: npm run e2e:ci
// [...]
steps:
// [...]
- name: Lint
run: npm run lint
// [...]
steps:
// [...]
- name: Install dependencies
run: npm install