Skip to content

Commit

Permalink
Adds publishing of NuGet packages on every build (#476)
Browse files Browse the repository at this point in the history
* Adds publishing of NuGet packages on every build

* Update name and execute run
  • Loading branch information
masesdevelopers authored Jul 2, 2024
1 parent d4a966c commit d0da67c
Showing 1 changed file with 1 addition and 52 deletions.
53 changes: 1 addition & 52 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,57 +123,6 @@ jobs:
provenance: true
sbom: true


# build_container_linux:
# needs: check_changes
# if: "always() && needs.check_changes.outputs.run_build_windows == 'true'"
# runs-on: ubuntu-latest
# # Steps represent a sequence of tasks that will be executed as part of the job
# steps:
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# - uses: actions/checkout@v4
# with:
# fetch-depth: '1'
# submodules: 'true'
#
# - name: Pre compile
# run: dotnet build --no-incremental --configuration Release /p:Platform="Any CPU" /p:NoWarn="0108%3B1030%3B0618" src/net/JNet/JNet.csproj
# env:
# GITHUB_SIMPLIFIED_GENERATION: true
#
# - name: Set up Apache Maven Central
# uses: actions/setup-java@v4
# with: # running setup-java again overwrites the settings.xml
# distribution: temurin
# java-version: 11
# cache: 'maven'
# server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
# server-username: MAVEN_USERNAME # env variable for username in deploy
# server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy
# gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
# gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
#
# - name: Create Jars
# run: mvn --file ./src/jvm/jnet/pom.xml --no-transfer-progress package
# env:
# MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
# MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
#
# - name: Build Docker Image
# run: docker build -t jnet -f ./src/container/Dockerfile.linux .
#
# - name: Save Docker Image
# run: docker image save -o jnet.linux.tar jnet
#
# - name: Compress Docker Image
# run: gzip jnet.linux.tar
#
# - uses: actions/upload-artifact@v4
# with:
# name: jnet.linux.tar.gz
# path: ./*.tar.gz
#
# Now run "build_windows"
build_windows:
needs: check_changes
Expand Down Expand Up @@ -262,7 +211,7 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: JNet
name: JNetNuGet
path: .\bin\*nupkg

- name: Compile tests and templates
Expand Down

0 comments on commit d0da67c

Please sign in to comment.