fix: Dockerfile to reduce vulnerabilities (#31) #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |