Skip to content

Merge pull request #47 from Rookabu/developer #35

Merge pull request #47 from Rookabu/developer

Merge pull request #47 from Rookabu/developer #35

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: deploy-gh-pages
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: write
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build-and-deploy:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 20
- name: install node modules
run: npm install
- name: Build
run: npm run build
- name: deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: ./dist # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch