Skip to content

Update publish.yml

Update publish.yml #5

Workflow file for this run

name: publish
on:
push:
branches: [ main ]
jobs:
release:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: dotnet tool restore
- name: Build the project
run: |
dotnet fsi build.fsx -p bundle
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './dist/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4