interval-timer/.github/workflows/main.yml

33 lines
660 B
YAML

name: Deploy to Azure Static Web Apps
on:
push:
branches: main
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '16.13'
- name: Install Dependencies
run: npm install
- name: Test
run: npm run test
- name: Deploy
uses: Azure/static-web-apps-deploy@v1
with:
action: 'upload'
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
output_location: dist
skip_api_build: true