Skip to content

Commit

Permalink
Update workflow to publish API automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreeam-qwq committed Sep 23, 2024
1 parent e62b6fc commit aba0995
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/build-1211.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,15 @@ jobs:
mv build/libs/leaf-paperclip-1.21.1-R0.1-SNAPSHOT-mojmap.jar ./leaf-1.21.1-mojmap.jar
mv build/libs/leaf-paperclip-1.21.1-R0.1-SNAPSHOT-reobf.jar ./leaf-1.21.1-reobf.jar
# Publish manually instead of using workflow
# - name: Publish API
# if: github.event_name != 'pull_request'
# run: |
# echo "REPO_USER=${{ secrets.REPO_USER }}" >> $GITHUB_ENV
# export REPO_USER=${{ secrets.REPO_USER }}
# echo "REPO_PASSWORD=${{ secrets.REPO_PASSWORD }}" >> $GITHUB_ENV
# export REPO_PASSWORD=${{ secrets.REPO_PASSWORD }}
# ./gradlew :leaf-api:publish
# ./gradlew publishDevBundlePublicationToLeafRepository -PpublishDevBundle=true
- name: Publish API
if: github.event_name != 'pull_request'
run: |
echo "REPO_USER=${{ secrets.REPO_USER }}" >> $GITHUB_ENV
export REPO_USER=${{ secrets.REPO_USER }}
echo "REPO_PASSWORD=${{ secrets.REPO_PASSWORD }}" >> $GITHUB_ENV
export REPO_PASSWORD=${{ secrets.REPO_PASSWORD }}
./gradlew :leaf-api:publish
./gradlew publishDevBundlePublicationToLeafRepository -PpublishDevBundle=true
- name: Upload Leaf
uses: actions/upload-artifact@main
Expand Down

0 comments on commit aba0995

Please sign in to comment.