Skip to content

Commit

Permalink
docs: update Swift Publish
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris authored Oct 7, 2020
1 parent 274c177 commit f15a311
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f15a311

Please sign in to comment.