docs: update Swift Publish

This commit is contained in:
Shohei Ueda 2020-10-07 13:28:23 +09:00 committed by GitHub
parent 274c177da0
commit f15a311467
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 3 deletions

View File

@ -1067,17 +1067,25 @@ on:
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-18.04 runs-on: macos-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Setup JohnSundell/Publish - name: Setup JohnSundell/Publish
run: | run: |
cd ${HOME} cd ${HOME}
git clone --depth=1 https://github.com/JohnSundell/Publish.git git clone https://github.com/JohnSundell/Publish.git
cd ./Publish cd ./Publish
git checkout 0.7.0
swift build -c release 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 - run: publish-cli generate