Skip to content

Commit ace3e8c

Browse files
committed
nuget worked, fixing github release before sync'ing
1 parent 0576071 commit ace3e8c

2 files changed

Lines changed: 16 additions & 12 deletions

File tree

.github/actions/github-release/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
import * as core from "@actions/core";
22
import * as github from "@actions/github";
33
import { lstatSync, readFileSync } from "fs";
4-
import { mimeOrDefault } from "mime";
4+
import { getType } from "mime";
55
import { basename } from "path";
66
import { Context } from "@actions/github/lib/context";
77

8+
function mimeOrDefault(path: string) {
9+
return getType(path) || "application/octet-stream";
10+
}
11+
812
function fileInfo(path: string) {
913
return {
1014
name: basename(path),

.github/workflows/release-package.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff 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'

0 commit comments

Comments
 (0)