Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
docs: update Swift Publish
- enhance cache
- pin version to 0.7.0
  • Loading branch information
Shohei Ueda authored and GitHub committed Oct 7, 2020
1 parent edd5ff3 commit c6c5feb
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions README.md
Expand Up @@ -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
Expand Down

0 comments on commit c6c5feb

Please sign in to comment.