From b95512f6a18d08dc30be9ac9af64b3de160bcf4c Mon Sep 17 00:00:00 2001 From: "novr (Nobuhisa Komiya)" Date: Wed, 15 Nov 2023 14:04:52 +0900 Subject: [PATCH] fix: Checkout wip --- .github/workflows/publish.yml | 19 ++++++++++++------- .gitignore | 4 +++- Package.swift | 2 +- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 00c58fd..605b116 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,6 +9,7 @@ on: branches: [ main ] paths: - 'Sources/**' + - 'Package.swift' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -22,15 +23,19 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: + - name: Checkout + uses: actions/checkout@v3 + # Runs a set of commands using the runners shell - - name: Run Bitrise + - name: Build docs run: > - swift package --allow-writing-to-directory ./docs generate-documentation \ - --target YumemiWeather \ - --disable-indexing \ - --output-path ./docs \ - --transform-for-static-hosting \ - --hosting-base-path ios-training + xcodebuild docbuild -scheme YumemiWeather \ + -derivedDataPath .build \ + -destination 'generic/platform=iOS' + $(xcrun --find docc) process-archive \ + transform-for-static-hosting .build/Build/Products/Debug-iphoneos/YumemiWeather.doccarchive \ + --hosting-base-path ios-training \ + --output-path docs - uses: actions/upload-pages-artifact@v2 with: path: docs diff --git a/.gitignore b/.gitignore index 57c7ecb..ae7a0cc 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,6 @@ /Packages /*.xcodeproj xcuserdata/ -DerivedData/ \ No newline at end of file +DerivedData/ +Package.resolved +docs diff --git a/Package.swift b/Package.swift index 9de61cd..5fa8761 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.2 +// swift-tools-version:5.7 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription