Skip to content

Commit

Permalink
ci: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
TheElan committed Dec 13, 2021
1 parent f7da591 commit 5e31267
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,16 @@ jobs:
- name: Build the mod
run: ./gradlew build

- name: Set repository owner and name
run: |
echo "REPOSITORY_OWNER=${GITHUB_REPOSITORY%/*}" >> $GITHUB_ENV
echo "REPOSITORY_NAME=${GITHUB_REPOSITORY#*/} >> $GITHUB_ENV
- name: Publish package
run: ./gradlew publish -Pgroup=com.github."$REPOISITORY_OWNER" -Pversion=0.0.1-publish-test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPOSITORY_NAME: ${GITHUB_REPOSITORY#*/}
REPOISITORY_OWNER: ${GITHUB_REPOSITORY%/*}
REPOSITORY_NAME: "${{ env.REPOSITORY_NAME }}"
REPOSITORY_OWNER: "${{ env.REPOSITORY_OWNER }}"


13 changes: 9 additions & 4 deletions .github/workflows/release-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,15 @@ jobs:
title: "${{ env.RELEASE_VERSION }}"
files: build/libs/*.jar

- name: Set repository owner and name
run: |
echo "REPOSITORY_OWNER=${GITHUB_REPOSITORY%/*}" >> $GITHUB_ENV
echo "REPOSITORY_NAME=${GITHUB_REPOSITORY#*/} >> $GITHUB_ENV
- name: Publish package
run: ./gradlew publish -Pgroup=com.github."$REPOISITORY_OWNER" -Pversion="${{ env.RELEASE_VERSION }}"
run: ./gradlew publish -Pgroup=com.github."$REPOSITORY_OWNER" -Pversion="$VERSION"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPOSITORY_NAME: ${GITHUB_REPOSITORY#*/}
REPOISITORY_OWNER: ${GITHUB_REPOSITORY%/*}

REPOSITORY_NAME: "${{ env.REPOSITORY_NAME }}"
REPOSITORY_OWNER: "${{ env.REPOSITORY_OWNER }}"
VERSION: "${{ env.RELEASE_VERSION }}"

0 comments on commit 5e31267

Please sign in to comment.