Yet another docs fix #44
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: Build | |
| on: | |
| push: | |
| branches: [ 'main' ] | |
| # paths-ignore: [ 'docs/**' ] | |
| permissions: write-all | |
| env: | |
| CONFIG: Release | |
| SLN_FILE: FsCDK.sln | |
| NUPKG_FOLDER: nupkgs | |
| TEMPLATE_PROJ: templates/FsCDK.Templates.proj | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| runs-on: [ ubuntu-latest ] | |
| runs-on: ${{ matrix.runs-on }} | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v4 | |
| - name: Read last version from CHANGELOG.md | |
| id: changelog_reader | |
| uses: mindsers/changelog-reader-action@v2 | |
| with: | |
| validation_level: warn | |
| path: ./CHANGELOG.md | |
| - name: Set nightly version | |
| run: | | |
| NIGHTLY_VERSION=${{ steps.changelog_reader.outputs.version }}-nightly-${GITHUB_RUN_ID} | |
| echo "Nightly version is $NIGHTLY_VERSION" | |
| echo "NIGHTLY_VERSION=$NIGHTLY_VERSION" >> "$GITHUB_ENV" | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| - name: Install AWS CDK CLI | |
| run: npm install -g aws-cdk@2 | |
| - name: Cache NuGet packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.nuget/packages | |
| ~/.local/share/NuGet/v3-cache | |
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nuget- | |
| - name: Build | |
| run: dotnet fsi build.fsx | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Packages-${{ matrix.runs-on }} | |
| path: nupkgs/ | |
| - name: Upload docs | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: output/ | |
| - name: Push | |
| run: dotnet nuget push "nupkgs/*" -s https://nuget.pkg.github.com/totallymoney/index.json -k ${{ secrets.GITHUB_TOKEN }} --skip-duplicate | |
| 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@v4 |