From c6c5feba5e7cdf1e9227296b38c6ab27a6372304 Mon Sep 17 00:00:00 2001 From: Shohei Ueda <30958501+peaceiris@users.noreply.github.com> Date: Wed, 7 Oct 2020 14:35:05 +0900 Subject: [PATCH] docs: update Swift Publish - enhance cache - pin version to 0.7.0 --- README.md | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 680fc8613..784f5251a 100644 --- a/README.md +++ b/README.md @@ -1071,22 +1071,26 @@ jobs: steps: - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + path: | + ~/Publish_build + .build + key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} + restore-keys: | + ${{ runner.os }}-spm- + - name: Setup JohnSundell/Publish run: | cd ${HOME} + export PUBLISH_VERSION="0.7.0" git clone https://github.com/JohnSundell/Publish.git - cd ./Publish - git checkout 0.7.0 + cd ./Publish && git checkout ${PUBLISH_VERSION} + mv ~/Publish_build .build || true swift build -c release + cp -r .build ~/Publish_build || true echo "${HOME}/Publish/.build/release" >> ${GITHUB_PATH} - - uses: actions/cache@v2 - with: - path: .build - key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} - restore-keys: | - ${{ runner.os }}-spm- - - run: publish-cli generate - name: Deploy to GitHub Pages