From f15a3114676f95a60146c8270e93a3ddd2c03086 Mon Sep 17 00:00:00 2001 From: Shohei Ueda <30958501+peaceiris@users.noreply.github.com> Date: Wed, 7 Oct 2020 13:28:23 +0900 Subject: [PATCH] docs: update Swift Publish --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b3beb6f..d0961c3 100644 --- a/README.md +++ b/README.md @@ -1067,17 +1067,25 @@ on: jobs: deploy: - runs-on: ubuntu-18.04 + runs-on: macos-latest steps: - uses: actions/checkout@v2 - name: Setup JohnSundell/Publish run: | cd ${HOME} - git clone --depth=1 https://github.com/JohnSundell/Publish.git + git clone https://github.com/JohnSundell/Publish.git cd ./Publish + git checkout 0.7.0 swift build -c release - echo "::add-path::${HOME}/Publish/.build/release" + 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