Add some more signature files for Fable.Daemon #100
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Main | |
| on: | |
| push: | |
| branches: ["main"] | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - uses: oven-sh/setup-bun@v2 | |
| - name: Setup dotnet | |
| uses: actions/setup-dotnet@v6 | |
| with: | |
| global-json-file: global.json | |
| - name: Restore tools | |
| run: dotnet tool restore | |
| - name: Restore solution | |
| run: dotnet restore | |
| - name: Install node_modules | |
| run: bun install --frozen-lockfile | |
| - name: Check formatting | |
| run: bun run fmt:check | |
| - name: Lint | |
| run: bun run lint | |
| - name: Test plugin | |
| run: bun run test:plugin | |
| - name: Test daemon | |
| run: bun run test:daemon | |
| - name: Build daemon | |
| run: bun run build:daemon | |
| - name: Build docs | |
| run: dotnet fsdocs build --noapidocs --projects "$(pwd)/packages/vite-plugin-fable/Fable.Daemon/Fable.Daemon.fsproj" | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: ./output | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v5 | |
| # A push to main that lands a new version in CHANGELOG.md is what starts a release. The check is | |
| # cheap and says so out loud on every push, so nothing has to be remembered at merge time. | |
| release-detect: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| permissions: | |
| contents: read | |
| actions: write # dispatch release.yml | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: oven-sh/setup-bun@v2 | |
| - name: Install node_modules | |
| run: bun install --frozen-lockfile --ignore-scripts | |
| - name: Detect a new release | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: bun run release:detect |