Skip to content

Commit

Permalink
Re-enable maven publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
StylianosGakis committed Nov 21, 2023
1 parent fcd9354 commit e12c52e
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions .github/workflows/maven-artifact-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,50 +113,50 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branches: "build-${{ steps.generateSPMversion.outputs.SPM_VERSION }}"
# publish-maven:
# name: Release build and publish
# runs-on: macos-12
# permissions:
# contents: write
# packages: write
# steps:
# - uses: actions/checkout@v4
# - uses: actions/[email protected]
# with:
# java-version: 17
# distribution: 'zulu'
# - name: Setup Gradle
# uses: gradle/gradle-build-action@v2
# with:
# cache-read-only: false
# gradle-home-cache-cleanup: true
#
# - name: Generate alpha version timestamp
# id: time
# uses: nanzm/[email protected]
publish-maven:
name: Release build and publish
runs-on: macos-12
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
java-version: 17
distribution: 'zulu'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: false
gradle-home-cache-cleanup: true

- name: Generate alpha version timestamp
id: time
uses: nanzm/[email protected]
with:
timeZone: 0
format: 'YYYY-MM-DD-HH-mm-ss'

- name: Print tag to be generated and save into env
env:
ORG_GRADLE_PROJECT_AUTHLIB_VERSION_ALPHA_TIMESTAMP: "${{ steps.time.outputs.time }}"
run: |
echo "Timestamp: $ORG_GRADLE_PROJECT_AUTHLIB_VERSION_ALPHA_TIMESTAMP"
- name: Build
id: gradle
uses: gradle/[email protected]
env:
ORG_GRADLE_PROJECT_AUTHLIB_VERSION_ALPHA_TIMESTAMP: "${{ steps.time.outputs.time }}"

# Maybe consider deleting old artifacts here
# - name: Delete old SNAPSHOT
# uses: actions/[email protected]
# with:
# timeZone: 0
# format: 'YYYY-MM-DD-HH-mm-ss'
#
# - name: Print tag to be generated and save into env
# env:
# ORG_GRADLE_PROJECT_AUTHLIB_VERSION_ALPHA_TIMESTAMP: "${{ steps.time.outputs.time }}"
# run: |
# echo "Timestamp: $ORG_GRADLE_PROJECT_AUTHLIB_VERSION_ALPHA_TIMESTAMP"
#
# - name: Build
# id: gradle
# uses: gradle/[email protected]
# env:
# ORG_GRADLE_PROJECT_AUTHLIB_VERSION_ALPHA_TIMESTAMP: "${{ steps.time.outputs.time }}"
#
## Maybe consider deleting old artifacts here
## - name: Delete old SNAPSHOT
## uses: actions/[email protected]
## with:
## package-name:
#
# - name: Publish to GitHub packages
# run: ./gradlew publishAllPublicationsToMavenRepository
# env:
# ORG_GRADLE_PROJECT_AUTHLIB_VERSION_ALPHA_TIMESTAMP: "${{ steps.time.outputs.time }}"
# package-name:

- name: Publish to GitHub packages
run: ./gradlew publishAllPublicationsToMavenRepository
env:
ORG_GRADLE_PROJECT_AUTHLIB_VERSION_ALPHA_TIMESTAMP: "${{ steps.time.outputs.time }}"

0 comments on commit e12c52e

Please sign in to comment.