Merge pull request #223 from ios-osushi/feature/129_20250106 #231
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 | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: swift-actions/setup-swift@v2 | |
with: | |
swift-version: "5.10.1" | |
- name: Build | |
run: | | |
swift --version | |
swift package --version | |
swift build -v | |
deploy-github-pages: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: swift-actions/setup-swift@v2 | |
with: | |
swift-version: "5.10.1" | |
- name: Setup | |
run: make setup | |
- name: Generate the website | |
run: make generate | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
personal_token: ${{ secrets.PERSONAL_TOKEN }} | |
external_repository: ios-osushi/ios-osushi.github.io | |
publish_branch: master | |
publish_dir: ./Output |