Skip to content

Update job dates, simplify UE description, add JSON package #31

Update job dates, simplify UE description, add JSON package

Update job dates, simplify UE description, add JSON package #31

Workflow file for this run

name: Portfolio Deployment
# Run workflow on every push to the master branch
on:
push:
branches: [ master ]
jobs:
deploy-to-github-pages:
runs-on: ubuntu-latest
steps:
# uses GitHubs checkout action to checkout from the master branch
- uses: actions/checkout@v2
# sets up .NET
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0
# publishes Blazor project to the release-folder
- name: Publish .NET Project
run: dotnet publish Portfolio/Portfolio.csproj -c Release -o Release --nologo
# changes the base-tag in index.html from '/' to 'Portfolio' to match GitHub Pages repository subdirectory
#- name: Change base-tag in index.html from / to Portfolio
# run: sed -i 's/<base href="\/" \/>/<base href="\/portfolio\/" \/>/g' Release/wwwroot/index.html
# copy index.html to 404.html to serve the same file when a file is not found
- name: copy index.html to 404.html
run: cp Release/wwwroot/index.html Release/wwwroot/404.html
# add .nojekyll file to tell GitHub pages to not treat this as a Jekyll project. (Allow files and folders starting with an underscore)
- name: Add .nojekyll file
run: touch Release/wwwroot/.nojekyll
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: Release/wwwroot