Skip to content

Commit 25a6e6f

Browse files
authoredNov 3, 2024··
Merge pull request #4 from bretleasure/release/0.4.1
* Fixed broken badges in Readme * Moved build to GitHub Actions
2 parents 5f88b40 + 118a97e commit 25a6e6f

File tree

3 files changed

+174
-1
lines changed

3 files changed

+174
-1
lines changed
 

‎.github/FUNDING.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# These are supported funding model platforms
2+
3+
github: bretleasure # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12+
polar: # Replace with a single Polar username
13+
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
14+
thanks_dev: # Replace with a single thanks.dev username
15+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

‎.github/workflows/build-deploy.yml

+154
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
name: Build and Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- release/*
7+
- main
8+
workflow_dispatch: #option to manually trigger action
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
15+
Build:
16+
if: "!contains(github.event.head_commit.message, 'nobuild')"
17+
runs-on: windows-latest
18+
19+
outputs:
20+
gitversion_semver: ${{ steps.gitversion.outputs.semver }}
21+
gitversion_nugetversion: ${{ steps.gitversion.outputs.nugetversion }}
22+
23+
steps:
24+
- name: Checkout codegit v
25+
uses: actions/checkout@v4.1.7
26+
with:
27+
fetch-depth: 0
28+
29+
- name: Setup GitVersion
30+
uses: gittools/actions/gitversion/setup@v1.2.0
31+
with:
32+
versionSpec: '5.x'
33+
34+
- name: Execute GitVersion
35+
id: gitversion
36+
uses: gittools/actions/gitversion/execute@v1.2.0
37+
38+
- name: Setup NuGet
39+
uses: NuGet/setup-nuget@v2.0.0
40+
41+
- name: NuGet restore
42+
run: nuget restore
43+
44+
- name: Build DotNet
45+
run: dotnet build -c Release
46+
47+
- name: Pack Projects
48+
run: dotnet pack --output artifacts --configuration Release /p:PackageVersion=${{ steps.gitversion.outputs.nugetversion }}
49+
50+
- name: Publish NuGet Build Artifacts
51+
uses: actions/upload-artifact@v4.3.4
52+
with:
53+
name: nuget
54+
path: ./artifacts/*.nupkg
55+
retention-days: 1
56+
overwrite: true
57+
58+
Deploy_GitHub_Packages:
59+
needs: Build
60+
runs-on: windows-latest
61+
62+
steps:
63+
64+
- name: Download a Build Artifact
65+
uses: actions/download-artifact@v4.1.8
66+
with:
67+
name: nuget
68+
path: ./artifacts
69+
70+
- name: Get Secrets
71+
uses: bitwarden/sm-action@v2
72+
with:
73+
access_token: ${{ secrets.BW_ACCESSTOKEN }}
74+
base_url: https://vault.bitwarden.com
75+
secrets: |
76+
f8a86ea6-660e-47d2-917b-b1b800da920e > NUGETORG_API_KEY
77+
23f1414f-95aa-4da0-bda7-b1c7015948a5 > GITHUB_PAT
78+
79+
- name: Push NuGet Packages
80+
shell: bash
81+
run: |
82+
shopt -s globstar
83+
for PACKAGE_FILE in ./artifacts/*.nupkg; do
84+
echo "Pushing $PACKAGE_FILE"
85+
dotnet nuget push "$PACKAGE_FILE" --api-key ${{ env.GITHUB_PAT }} --source "https://nuget.pkg.github.com/bretleasure/index.json"
86+
done
87+
88+
Deploy_NuGet-org:
89+
needs: Build
90+
runs-on: windows-latest
91+
92+
steps:
93+
94+
- name: Download a Build Artifact
95+
uses: actions/download-artifact@v4.1.8
96+
with:
97+
name: nuget
98+
path: ./artifacts
99+
100+
- name: Get Secrets
101+
uses: bitwarden/sm-action@v2
102+
with:
103+
access_token: ${{ secrets.BW_ACCESSTOKEN }}
104+
base_url: https://vault.bitwarden.com
105+
secrets: |
106+
f8a86ea6-660e-47d2-917b-b1b800da920e > NUGETORG_API_KEY
107+
23f1414f-95aa-4da0-bda7-b1c7015948a5 > GITHUB_PAT
108+
109+
- name: Push NuGet Packages
110+
shell: bash
111+
run: |
112+
shopt -s globstar
113+
for PACKAGE_FILE in ./artifacts/*.nupkg; do
114+
echo "Pushing $PACKAGE_FILE"
115+
dotnet nuget push "$PACKAGE_FILE" --api-key ${{ env.NUGETORG_API_KEY }} --source "https://api.nuget.org/v3/index.json"
116+
done
117+
118+
Create_Release:
119+
needs: Build
120+
runs-on: windows-latest
121+
steps:
122+
- name: Get Secrets
123+
uses: bitwarden/sm-action@v2
124+
with:
125+
access_token: ${{ secrets.BW_ACCESSTOKEN }}
126+
base_url: https://vault.bitwarden.com
127+
secrets: |
128+
f8a86ea6-660e-47d2-917b-b1b800da920e > NUGETORG_API_KEY
129+
23f1414f-95aa-4da0-bda7-b1c7015948a5 > GITHUB_PAT
130+
131+
- name: Create Tag
132+
uses: negz/create-tag@v1
133+
with:
134+
token: ${{ env.GITHUB_PAT }}
135+
version: ${{ needs.Build.outputs.gitversion_semver }}
136+
message: ${{ needs.Build.outputs.gitversion_semver }}
137+
138+
- name: Create GitHub Release
139+
if: github.ref == 'refs/heads/main'
140+
uses: ncipollo/release-action@v1
141+
with:
142+
tag: ${{ needs.Build.outputs.gitversion_semver }}
143+
prerelease: false
144+
artifacts: "./artifacts/**.zip"
145+
generateReleaseNotes: true
146+
147+
- name: Create GitHub Pre-Release
148+
if: github.ref != 'refs/heads/main'
149+
uses: ncipollo/release-action@v1
150+
with:
151+
tag: ${{ needs.Build.outputs.gitversion_semver }}
152+
prerelease: true
153+
artifacts: "./artifacts/**.zip"
154+
generateReleaseNotes: true

‎README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Inventor.InternalNames
22

3-
[![NuGet version (Inventor.InternalNames)](https://buildstats.info/nuget/Inventor.InternalNames)](https://www.nuget.org/packages/Inventor.InternalNames)
3+
![GitHub Release](https://img.shields.io/github/v/release/bretleasure/inventor.internalnames?logo=github)
4+
![GitHub Release](https://img.shields.io/github/v/release/bretleasure/inventor.internalnames?include_prereleases&logo=github&label=latest%20build)
5+
![NuGet Downloads](https://img.shields.io/nuget/dt/inventor.internalnames?logo=nuget&color=9932CC&link=https%3A%2F%2Fwww.nuget.org%2Fpackages%2FInventor.InternalNames)
6+
![GitHub License](https://img.shields.io/github/license/bretleasure/inventor.internalnames?color=salmon)
7+
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/bretleasure/inventor.internalnames/build-deploy.yml?logo=github%20actions&logoColor=white&label=Build%20and%20Deploy)
48

59
This repository contains a list of internal names for Autodesk Inventor. Each category is broken down into its own namesspace (e.g. Ribbon, PropertySets, iProperties, etc.)
610

0 commit comments

Comments
 (0)
Please sign in to comment.