Skip to content

The Key (v2)

The Key (v2) #101

Workflow file for this run

name: πŸš€ Deploy to GitHub Pages
on:
workflow_dispatch:
push:
branches: [main]
paths: src/**
# pull_request:
# branches: [ main ]
# paths: src/**
# # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
# permissions:
# contents: read
# pages: write
# id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
# defaults:
# run:
# working-directory: src
steps:
- name: 🚚 Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: βš™ Setup .NET 8.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"
# include-prerelease: true
- name: ⬇️ Restore dependencies
working-directory: ./src
run: dotnet restore
- name: πŸ”¨ Build
working-directory: ./src
run: dotnet build --no-restore
- name: πŸ“¦ Run
working-directory: ./src
run: dotnet run
# https://github.com/marketplace/actions/github-pages-action
- name: πŸš€ Deploy
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./src/output