Skip to content

.github/workflows/deploy.yml #385

.github/workflows/deploy.yml

.github/workflows/deploy.yml #385

Workflow file for this run

on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# We want all the history to display the last updated date in pages
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm run build
env:
MATOMO_SITE_ID: ${{ secrets.MATOMO_SITE_ID }}
MATOMO_SITE_URL: ${{ secrets.MATOMO_SITE_URL }}
- run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/italia/designers.italia.it
echo designers.italia.it > public/CNAME
npm run deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}