-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 973 Bytes
/
deployment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Deployment
on:
push:
branches:
- master
jobs:
deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0'
include-prerelease: true
- name: publish
run: |
cd FuelStationBlazor
cd Client
dotnet publish -c release
- name: Change base-tag in index.html from / to the necessary
run: sed -i 's/<base href="\/" \/>/<base href="\/FuelStationBlazor\/" \/>/g' ./FuelStationBlazor/Client/bin/release/net8.0/publish/wwwroot/index.html
- name: Add .nojekyll file
run: touch ./FuelStationBlazor/Client/bin/release/net8.0/publish/wwwroot/.nojekyll
- uses: JamesIves/github-pages-deploy-action@v4
name: gh-pages publish
with:
branch: gh-pages
folder: ./FuelStationBlazor/Client/bin/release/net8.0/publish/wwwroot