Skip to content

Commit

Permalink
chore(ci): use prebuilds to speed up ci runs
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Jan 24, 2025
1 parent 24a96ac commit 660772c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ jobs:

- name: Upload prebuild for ${{ runner.os }}-${{ runner.arch }}
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
if: github.ref == 'refs/heads/master'
with:
path: prebuilds/*.tar.gz
name: artifact-${{ matrix.docker == true && matrix.alpine == true && 'linux-musl' || matrix.docker == true && matrix.alpine == false && 'linux' || matrix.os }}-${{ matrix.arch }}
Expand Down Expand Up @@ -158,10 +159,10 @@ jobs:
fetch-depth: 0

- name: Download prebuilds
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master'
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
- run: FETCH_ASSETS=true REPO=you54f/pact-js-core ./script/ci/check-release-libs.sh --fetch-assets -t
if: github.ref != 'refs/heads/master'
- run: FETCH_ASSETS=true REPO=you54f/pact-js-core ./script/ci/check-release-libs.sh --fetch-assets
if: github.ref != 'refs/heads/master'
env:
GITHUB_TOKEN: ${{ github.token }}

Expand Down
6 changes: 5 additions & 1 deletion script/ci/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ else
VERSION="$("$SCRIPT_DIR/lib/get-version.sh")"
TAG="v${VERSION}"
fi
echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT"
export VERSION
set +eu
# GITHUB_OUPUT is unset if testing DRY_RUN locally
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
set -eu
"$SCRIPT_DIR"/lib/publish.sh

# Push the new commit back to the repo.
Expand Down

0 comments on commit 660772c

Please sign in to comment.