Skip to content

Update Synced CI-Workflow (Lint) #219

Update Synced CI-Workflow (Lint)

Update Synced CI-Workflow (Lint) #219

Workflow file for this run

name: CI
"on":
push:
branches:
- main
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.npm
key: '${{ runner.os }}-node-${{ hashFiles(''**/package-lock.json'') }}'
- uses: chrnorm/deployment-action@v1.0.0
name: Create GitHub deployment
id: deployment
with:
token: ${{ secrets.GITHUB_TOKEN }}
target_url: https://calculator.adrianjost.dev
environment: Demo
- run: npm ci
- run: npm run deploy
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
- name: Update deployment status (success)
if: success()
uses: chrnorm/deployment-status@v1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
target_url: https://calculator.adrianjost.dev
state: "success"
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
- name: Update deployment status (failure)
if: failure()
uses: chrnorm/deployment-status@v1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
target_url: https://calculator.adrianjost.dev
state: "failure"
deployment_id: ${{ steps.deployment.outputs.deployment_id }}