Skip to content

updated prism script #94

updated prism script

updated prism script #94

Workflow file for this run

name: .NET
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
outputs:
release_number: ${{steps.get_latest_release_number.outputs.release_tag}}
permissions:
contents: write
pull-requests: write
outputs:

Check failure on line 18 in .github/workflows/dotnet.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/dotnet.yml

Invalid workflow file

You have an error in your yaml syntax on line 18
release_number: ${{steps.get_latest_release_number.outputs.release_tag}}
permissions:
contents: write
pull-requests: write
steps:
- name: checkout dotnet repo
uses: actions/checkout@v4
with:
repository: XeroAPI/Xero-NetStandard
path: Xero-NetStandard
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
working-directory: Xero-NetStandard
- name: Fetch Latest release number
id: get_latest_release_number
run: |
latest_version=$(gh release view --json tagName --jq '.tagName')
echo "Latest release version is - $latest_version"
echo "::set-output name=release_tag::$latest_version"
working-directory: Xero-NetStandard
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Build
run: dotnet build --no-restore
working-directory: Xero-NetStandard
- name: Create Package for Nuget.org\
run: dotnet pack
working-directory: Xero-NetStandard
- name: Publish Package to Nuget.org
run: dotnet nuget push ./Xero.NetStandard.OAuth2/bin/Release/Xero.NetStandard.OAuth2.${{ github.event.release.name }}.nupkg --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json