Skip to content

Merge pull request #45 from giacomogiudice/dependabot/npm_and_yarn/es… #13

Merge pull request #45 from giacomogiudice/dependabot/npm_and_yarn/es…

Merge pull request #45 from giacomogiudice/dependabot/npm_and_yarn/es… #13

Workflow file for this run

name: Publish
on:
push:
branches: [master]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Build
run: |
npm install
npm run build
- name: Deploy
if: ${{ github.ref == 'refs/heads/master' }}
uses: netlify/actions/cli@master
with:
args: deploy --prod --message="$MESSAGE"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
MESSAGE: "${{ github.ref_name }}@${{ github.sha }}"
- name: Update database
if: ${{ github.ref == 'refs/heads/master' }}
run: npm run db-update
env:
REDIS_URL: ${{ secrets.REDIS_URL }}