File tree Expand file tree Collapse file tree
actions/github-release/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import * as core from "@actions/core" ;
22import * as github from "@actions/github" ;
33import { lstatSync , readFileSync } from "fs" ;
4- import { mimeOrDefault } from "mime" ;
4+ import { getType } from "mime" ;
55import { basename } from "path" ;
66import { Context } from "@actions/github/lib/context" ;
77
8+ function mimeOrDefault ( path : string ) {
9+ return getType ( path ) || "application/octet-stream" ;
10+ }
11+
812function fileInfo ( path : string ) {
913 return {
1014 name : basename ( path ) ,
Original file line number Diff line number Diff line change @@ -64,18 +64,18 @@ jobs:
6464 version=$(cat version.txt)
6565 echo "::set-env name=package_version::$version"
6666
67- - name : Setup Dotnet ${{ env.DOTNET_VERSION }}
68- uses : actions/setup-dotnet@v1
69- if : steps.check-issue.outputs.exists == 'true'
70- with :
71- dotnet-version : ${{ env.DOTNET_VERSION }}
67+ # - name: Setup Dotnet ${{ env.DOTNET_VERSION }}
68+ # uses: actions/setup-dotnet@v1
69+ # if: steps.check-issue.outputs.exists == 'true'
70+ # with:
71+ # dotnet-version: ${{ env.DOTNET_VERSION }}
7272
73- - name : Push NuGet Package
74- if : steps.check-issue.outputs.exists == 'true'
75- working-directory : ${{ env.OUTPUT_PATH }}
76- run : |
77- dotnet nuget push FSharp.CosmosDb.${{ env.package_version }}.nupkg --api-key ${{ secrets.NUGET_KEY }} --source ${{ env.NUGET_SOURCE }}
78- dotnet nuget push FSharp.CosmosDb.Analyzer.${{ env.package_version }}.nupkg --api-key ${{ secrets.NUGET_KEY }} --source ${{ env.NUGET_SOURCE }}
73+ # - name: Push NuGet Package
74+ # if: steps.check-issue.outputs.exists == 'true'
75+ # working-directory: ${{ env.OUTPUT_PATH }}
76+ # run: |
77+ # dotnet nuget push FSharp.CosmosDb.${{ env.package_version }}.nupkg --api-key ${{ secrets.NUGET_KEY }} --source ${{ env.NUGET_SOURCE }}
78+ # dotnet nuget push FSharp.CosmosDb.Analyzer.${{ env.package_version }}.nupkg --api-key ${{ secrets.NUGET_KEY }} --source ${{ env.NUGET_SOURCE }}
7979
8080 - name : Get Action sha
8181 if : steps.check-issue.outputs.exists == 'true'
You can’t perform that action at this time.
0 commit comments