Fix header image path #269
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy as Github Page on fbernutz.github.io | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: macOS-12 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/cache@v4.0.2 | |
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.9.0" | |
git clone https://github.com/JohnSundell/Publish.git | |
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} | |
- name: Generate Output | |
run: publish-cli generate | |
- name: Deploy Content | |
uses: peaceiris/actions-gh-pages@v4.0.0 | |
with: | |
personal_token: ${{ secrets.PERSONAL_TOKEN }} | |
external_repository: fbernutz/fbernutz.github.io | |
publish_branch: master | |
publish_dir: ./Output | |
commit_message: ${{ github.event.head_commit.message }} |