Skip to content

Commit

Permalink
ci: Remove caching and add artifact download
Browse files Browse the repository at this point in the history
Signed-off-by: Mihail Mihov <[email protected]>
  • Loading branch information
mishomihov00 committed Jan 14, 2025
1 parent 89709f7 commit 93b8e11
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/node-zxc-build-release-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,6 @@ jobs:
echo "prefix=${MAJOR_VERSION}.${MINOR_VERSION}" >>"${GITHUB_OUTPUT}"
echo "prerelease=${PRERELEASE}" >>"${GITHUB_OUTPUT}"
- name: Cache Build Version
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: version.txt
key: node-build-version-${{ steps.effective-version.outputs.number }}-${{ github.sha }}

- name: Upload Build Version
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
Expand Down Expand Up @@ -301,12 +295,10 @@ jobs:
with:
gradle-version: ${{ inputs.gradle-version }}

- name: Restore Build Version
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
- name: Download Build Version
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
fail-on-cache-miss: true
path: version.txt
key: node-build-version-${{ needs.validate.outputs.version }}-${{ github.sha }}
name: version.txt

- name: Cache Build Artifacts
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
Expand Down Expand Up @@ -731,12 +723,10 @@ jobs:
with:
gradle-version: ${{ inputs.gradle-version }}

- name: Restore Build Version
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
- name: Download Build Version
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
fail-on-cache-miss: true
path: version.txt
key: node-build-version-${{ needs.validate.outputs.version }}-${{ github.sha }}
name: version.txt

- name: Gradle Assemble
run: ./gradlew assemble --scan
Expand Down

0 comments on commit 93b8e11

Please sign in to comment.