Skip to content

Commit

Permalink
move to actions (#27)
Browse files Browse the repository at this point in the history
* move to actions

* revision reset

* build.fsx
  • Loading branch information
et1975 authored May 31, 2024
1 parent 3571dfe commit a8951a5
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 42 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/azure.aad.fs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: public/Azure.AAD.fs
on:
push:
branches:
- master
- "refs/tags/*"
pull_request:
branches:
- master
env:
BUILD_NUMBER: "${{ github.run_number }}"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4.1.0
- uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: 8.0.100
- name: Restore tools
run: dotnet tool restore
- name: Build
run: dotnet fsi build.fsx -t ci
if: ${{ !startsWith(github.ref, 'refs/tags') }}
- name: Build and publish
env:
NUGET_REPO_KEY: "${{ secrets.NUGET_REPO_KEY }}"
NUGET_REPO_URL: "${{ vars.NUGET_REPO_URL }}"
run: dotnet fsi build.fsx -t release
if: ${{ startsWith(github.ref, 'refs/tags') }}
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 6.2.0
* Resetting the build/revision counter

### 6.1.0
* Reintroduce net6.0 target while keeping net8.0

Expand Down
40 changes: 0 additions & 40 deletions azure-pipelines.yml

This file was deleted.

4 changes: 2 additions & 2 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#r "nuget: Fake.Core.ReleaseNotes"
#r "nuget: Fake.Core.Target"
#r "nuget: Fake.Tools.Git"
#r "nuget: MSBuild.StructuredLogger, 2.1.820"
#r "nuget: MSBuild.StructuredLogger, 2.2.243"

open Fake.Core
open Fake.Core.TargetOperators
Expand Down Expand Up @@ -238,7 +238,7 @@ Target.create "releaseDocs" (fun _ ->
let tempDocsDir = "tmp/gh-pages"
Shell.cleanDir tempDocsDir
Git.Repository.cloneSingleBranch "" gitRepo "gh-pages" tempDocsDir
Git.Repository.fullclean tempDocsDir
Git.Repository.fullClean tempDocsDir
Shell.copyRecursive "output" tempDocsDir true |> Trace.tracefn "%A"
Git.Staging.stageAll tempDocsDir
Git.Commit.exec tempDocsDir (sprintf "Update generated documentation for version %s" release.NugetVersion)
Expand Down

0 comments on commit a8951a5

Please sign in to comment.