Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 2b1dd86

Browse files
committed
Initial beta
0 parents  commit 2b1dd86

File tree

956 files changed

+235973
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

956 files changed

+235973
-0
lines changed

.github/workflows/build.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request:
6+
branches:
7+
- main
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 15
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Set VERSION variable from tag
18+
run: echo "VERSION=$(git describe --tags | tail -c +2) >> $GITHUB_ENV
19+
20+
- name: Build
21+
run: dotnet build --configuration Release /p:Version=${VERSION}
22+
23+
- name: Pack
24+
run: dotnet pack --configuration Release /p:Version=${VERSION} --no-build
25+
26+
- name: Archive production artifacts
27+
uses: actions/upload-artifact@v2
28+
with:
29+
name: NuGet Package
30+
path: src/ElementsSDK/bin/Release/netstandard2.0

.github/workflows/release.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
on:
3+
push:
4+
tags:
5+
- "v[0-9]+.[0-9]+.[0-9]+"
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
timeout-minutes: 15
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- name: Verify commit exists in origin/main
16+
run: git branch --remote --contains | grep origin/main
17+
- name: Extract release notes
18+
run: |
19+
git log --pretty=format:'%d %s' ${GITHUB_REF} | perl -pe 's| \(.*tag: v(\d+.\d+.\d+(-preview\d{3})?)(, .*?)*\)|\n## \1\n|g' > RELEASE-NOTES
20+
- name: Set VERSION variable from tag
21+
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
22+
- name: Build
23+
run: dotnet build --configuration Release /p:Version=${VERSION}
24+
- name: Pack
25+
run: dotnet pack --configuration Release /p:Version=${VERSION} --no-build --output .
26+
- name: Push
27+
run: dotnet nuget push ElementsSDK.${VERSION}.nupkg --source https://nuget.pkg.github.com/elements-storage/index.json --api-key ${GITHUB_TOKEN}
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)