Skip to content

Commit

Permalink
ci: Restore commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Oct 23, 2024
1 parent 3023e3a commit 8b239bb
Showing 1 changed file with 22 additions and 19 deletions.
41 changes: 22 additions & 19 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ jobs:
version: ${{ steps.extract-version.outputs.version }}
bump: patch
id: bump-version
#- name: Updating version properties
# run: |
# sed -i "s/^\s*version\s*=.*/version = ${{ steps.bump-version.outputs.version }}/g" gradle.properties
# git config user.name "GitHub Actions"
# git config user.email "<>"
# git commit -am "Set version to ${{ steps.bump-version.outputs.version }}"
# git push origin ${BRANCH_NAME}
# git tag -a "v${{ steps.bump-version.outputs.version }}" -m "Release ${{ steps.bump-version.outputs.version }}"
# git push origin "v${{ steps.bump-version.outputs.version }}"
# shell: bash
# env:
# BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
- name: Updating version properties
run: |
sed -i "s/^\s*version\s*=.*/version = ${{ steps.bump-version.outputs.version }}/g" gradle.properties
git config user.name "GitHub Actions"
git config user.email "<>"
git commit -am "Set version to ${{ steps.bump-version.outputs.version }}"
git push origin ${BRANCH_NAME}
git tag -a "v${{ steps.bump-version.outputs.version }}" -m "Release ${{ steps.bump-version.outputs.version }}"
git push origin "v${{ steps.bump-version.outputs.version }}"
shell: bash
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
- name: Preparing build matrix
id: set-build-matrix
uses: actions/github-script@v7
Expand Down Expand Up @@ -91,6 +91,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ needs.create-release.outputs.ref }}
- name: Validate gradle wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Setup JDK
Expand All @@ -117,6 +119,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ needs.create-release.outputs.ref }}
- name: Validate gradle wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Setup JDK
Expand Down Expand Up @@ -150,8 +154,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
#with:
# ref: ${{ needs.create-release.outputs.ref }}
with:
ref: ${{ needs.create-release.outputs.ref }}
- name: Download ${{ matrix.loader }} artifact
uses: actions/download-artifact@v4
with:
Expand All @@ -170,11 +174,10 @@ jobs:
- name: Check current artifact hash TODO
run: sha1sum ${{ matrix.loader }}/build/libs/*
- name: Publish
#run: ./gradlew :${{ matrix.loader }}:${{ matrix.site }} '-Pversion=${{needs.create-release.outputs.version}}' '-PtwelveIterationsNexusUsername=${{ secrets.NEXUS_USER }}' '-PtwelveIterationsNexusPassword=${{ secrets.NEXUS_PASSWORD }}'
run: ./gradlew :${{ matrix.loader }}:build '-Pversion=${{needs.create-release.outputs.version}}' '-PtwelveIterationsNexusUsername=${{ secrets.NEXUS_USER }}' '-PtwelveIterationsNexusPassword=${{ secrets.NEXUS_PASSWORD }}'
#env:
# CURSEFORGE_TOKEN: ${{secrets.CURSEFORGE_TOKEN}}
# MODRINTH_TOKEN: ${{secrets.MODRINTH_TOKEN}}
run: ./gradlew :${{ matrix.loader }}:${{ matrix.site }} '-Pversion=${{needs.create-release.outputs.version}}' '-PtwelveIterationsNexusUsername=${{ secrets.NEXUS_USER }}' '-PtwelveIterationsNexusPassword=${{ secrets.NEXUS_PASSWORD }}'
env:
CURSEFORGE_TOKEN: ${{secrets.CURSEFORGE_TOKEN}}
MODRINTH_TOKEN: ${{secrets.MODRINTH_TOKEN}}
- name: Check new artifact hash TODO
run: sha1sum ${{ matrix.loader }}/build/libs/*
needs:
Expand Down

0 comments on commit 8b239bb

Please sign in to comment.