Skip to content

Rename file and fix deployment #3

Rename file and fix deployment

Rename file and fix deployment #3

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
jobs:
build:
# Run on all label events (won't be duplicated) or all push events or on PR syncs not from the same repo
if: github.repository_owner == 'OneLiteFeatherNET'
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v3
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
cache: gradle
java-version: 17
- name: Publish
env:
TAG_VERSION: ${{ github.ref_name }}
GPG_PRIVATE_KEY: ${{ secrets.ONELITEFEATHER_GPG_KEY }}
GPG_PASSPHRASE: ${{ secrets.ONELITEFEATHER_GPG_PASSWORD }}
ORG_GRADLE_PROJECT_eldoUsername: "${{ secrets.ELDO_USERNAME }}"
ORG_GRADLE_PROJECT_eldoPassword: "${{ secrets.ELDO_PASSWORD }}"
ORG_GRADLE_PROJECT_onelitefeatherSigningKey: "${{ secrets.ONELITEFEATHER_GPG_KEY }}"
ORG_GRADLE_PROJECT_onelitefeatherSigningPassword: "${{ secrets.ONELITEFEATHER_GPG_PASSWORD }}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "Github Actions"
./gradlew publishPlugins -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }} publish
echo "Version: ${TAG_VERSION}" >> $GITHUB_STEP_SUMMARY