Add CodeQL workflow for GitHub code scanning (#52) #44
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: CD | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
- run: yarn install --frozen-lockfile | |
- run: yarn clean | |
- run: yarn build | |
- run: | | |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/teamdigitale/identitadigitale.gov.it.git | |
echo identitadigitale.gov.it > public/CNAME | |
yarn deploy | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |