Skip to content

Commit b43612b

Browse files
committed
feature: initial commit
0 parents  commit b43612b

File tree

4 files changed

+108
-0
lines changed

4 files changed

+108
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Create Release and Push to Marketplace
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
- name: Install GitVersion
17+
uses: gittools/actions/gitversion/setup@v0
18+
with:
19+
versionSpec: '5.x'
20+
- name: Determine Version
21+
id: gitversion
22+
uses: gittools/actions/gitversion/execute@v0
23+
- name: Tag ${{ env.GitVersion_SemVer }}
24+
run: |
25+
git config --local user.email "james@jcdc.dev"
26+
git config --local user.name "James"
27+
git tag -a "$GitVersion_SemVer" -m "Release $GitVersion_SemVer"
28+
- name: Create Release ${{ env.GitVersion_SemVer }}
29+
uses: ncipollo/release-action@v1
30+
with:
31+
prerelease: ${{ contains(github.ref, 'beta') || contains(github.ref, 'alpha') }}
32+
generateReleaseNotes: true
33+
tag: ${{ env.GitVersion_SemVer }}
34+
allowUpdates: true
35+
makeLatest: true
36+
- name: Push ${{ env.GitVersion_SemVer }}
37+
uses: ad-m/github-push-action@master
38+
with:
39+
github_token: ${{ secrets.GITHUB_TOKEN }}
40+
force: true
41+
tags: true

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 James Carter
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Whitespace-only changes.

action.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: "🚀 Release Umbraco Package"
2+
description: ""
3+
author: "James Carter"
4+
branding:
5+
icon: "refresh-cw"
6+
color: "gray-dark"
7+
outputs:
8+
artifact-name:
9+
description: "Artifact name"
10+
value: ${{ steps.get-version.artifact-name }}
11+
version:
12+
description: "Version"
13+
value: ${{ steps.get-version.package-version }}
14+
inputs:
15+
artifact-name:
16+
description: "Artifact name"
17+
required: true
18+
version:
19+
description: "Version"
20+
required: true
21+
nuget-api-key:
22+
description: "NuGet API key"
23+
required: true
24+
runs:
25+
using: "composite"
26+
steps:
27+
- name: Set env
28+
id: set-env
29+
shell: bash
30+
run: |
31+
echo "SEMVER=${{ inputs.version }}" >> $GITHUB_ENV
32+
echo "ARTIFACT_NAME=${{ inputs.artifact-name }}" >> $GITHUB_ENV
33+
echo "NUGET_API_KEY=${{ inputs.nuget-api-key }}" >> $GITHUB_ENV
34+
echo "ARTIFACT_PATH=./packages" >> $GITHUB_ENV
35+
- name: Download package
36+
uses: actions/download-artifact@v2
37+
with:
38+
name: ${{ env.ARTIFACT_NAME }}
39+
path: ${{ env.ARTIFACT_PATH }}
40+
- name: Push to NuGet
41+
shell: bash
42+
run: dotnet nuget push ${{ env.ARTIFACT_PATH }}/**/*.nupkg -k ${{ env.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
43+
- name: 🚀 Create release
44+
uses: jcdcdev/jcdcdev.Github.UmbracoSimpleDeploy/.github/workflows/update-release.yml@main
45+
with:
46+
version: ${{ inputs.version }}

0 commit comments

Comments
 (0)