move to actions #5
This file contains 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: 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/[email protected] | |
- uses: actions/[email protected] | |
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') }} |