-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into latest-plugins
- Loading branch information
Showing
298 changed files
with
10,175 additions
and
2,424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Publish (docker-image) | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
env: | ||
DOTNET_VERSION: 8.0.x | ||
DIST_DIR: ./dist | ||
|
||
jobs: | ||
neo-cli-build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Set Application Version (Environment Variable) | ||
run: | | ||
APP_VERSION=$(echo '${{ github.event.release.tag_name }}' | cut -d 'v' -f 2) | ||
echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV | ||
- name: Checkout (GitHub) | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: ${{ env.DOTNET_VERSION }} | ||
|
||
- name: Build (neo-cli) | ||
run: | | ||
dotnet publish ./src/Neo.CLI \ | ||
--framework net8.0 \ | ||
--configuration Release \ | ||
--runtime linux-x64 \ | ||
--self-contained true \ | ||
--output ${{ env.DIST_DIR }} \ | ||
--verbosity normal \ | ||
-p:VersionPrefix=${{ env.APP_VERSION }} \ | ||
-p:RuntimeIdentifier=linux-x64 \ | ||
-p:SelfContained=true \ | ||
-p:IncludeNativeLibrariesForSelfExtract=false \ | ||
-p:PublishTrimmed=false \ | ||
-p:PublishSingleFile=true \ | ||
-p:PublishReadyToRun=true \ | ||
-p:EnableCompressionInSingleFile=true \ | ||
-p:DebugType=embedded \ | ||
-p:ServerGarbageCollection=true | ||
- name: Build (LevelDbStore) | ||
run: | | ||
dotnet build ./src/Plugins/LevelDBStore \ | ||
--framework net8.0 \ | ||
--configuration Release \ | ||
--output ${{ env.DIST_DIR }}/Plugins/LevelDBStore \ | ||
--verbosity normal \ | ||
-p:VersionPrefix=${{ env.APP_VERSION }} | ||
- name: Remove (junk) | ||
run: | | ||
rm -v ${{ env.DIST_DIR }}/Plugins/LevelDBStore/Neo* | ||
rm -v ${{ env.DIST_DIR }}/Plugins/LevelDBStore/*.pdb | ||
rm -v ${{ env.DIST_DIR }}/Plugins/LevelDBStore/*.xml | ||
rm -v ${{ env.DIST_DIR }}/*.xml | ||
- name: Docker Login | ||
run: | | ||
docker login ghcr.io \ | ||
--username ${{ github.repository_owner }} \ | ||
--password ${{ secrets.GITHUB_TOKEN }} | ||
- name: Docker Build | ||
run: | | ||
docker build . \ | ||
--file ./.neo/docker/neo-cli/Dockerfile \ | ||
--tag ghcr.io/${{ github.repository_owner }}/neo-cli:latest \ | ||
--tag ghcr.io/${{ github.repository_owner }}/neo-cli:${{ env.APP_VERSION }} \ | ||
--push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Release (nuget) | ||
|
||
# Trigger the workflow on a release event when a new release is published | ||
on: | ||
release: | ||
types: [published] | ||
|
||
# Define environment variables | ||
env: | ||
DOTNET_VERSION: 8.0.x | ||
CONFIGURATION: Release | ||
|
||
jobs: | ||
nuget-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Step to set the application version from the release tag | ||
- name: Set Application Version (Environment Variable) | ||
run: | | ||
APP_VERSION=$(echo '${{ github.event.release.tag_name }}' | cut -d 'v' -f 2) | ||
echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: ${{ env.DOTNET_VERSION }} | ||
|
||
- name: Pack NuGet Packages | ||
run: | | ||
dotnet pack ./neo.sln \ | ||
--configuration Release \ | ||
--output ./sbin \ | ||
--verbosity normal \ | ||
-p:VersionPrefix=${{ env.APP_VERSION }} | ||
- name: Publish to NuGet.org | ||
run: | | ||
dotnet nuget push ./sbin/*.nupkg \ | ||
--source https://api.nuget.org/v3/index.json \ | ||
--api-key ${{ secrets.NUGET_TOKEN }} \ | ||
--skip-duplicate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.