Skip to content

fix: Dockerfile to reduce vulnerabilities (#31) #45

fix: Dockerfile to reduce vulnerabilities (#31)

fix: Dockerfile to reduce vulnerabilities (#31) #45

Workflow file for this run

name: Deploy to Surge
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
name: Deploying to surge
steps:
- uses: actions/checkout@v1
- name: Install surge and fire deployment
uses: actions/setup-node@v1
with:
node-version: 8
- name: Install surge CLI
run: npm install -g surge
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.300
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Publish Blazor webassembly using dotnet
run: dotnet publish -c Release --no-build -o publishoutput
- name: Publish to Surge
run: surge publishoutput/wwwroot ${{ secrets.SURGE_DOMAIN }} --token ${{ secrets.SURGE_TOKEN }}