Skip to content

Commit

Permalink
fix: Checkout
Browse files Browse the repository at this point in the history
wip
  • Loading branch information
novr committed Nov 16, 2023
1 parent bc74423 commit b95512f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/publish.yml
Expand Up @@ -9,6 +9,7 @@ on:
branches: [ main ]
paths:
- 'Sources/**'
- 'Package.swift'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -3,4 +3,6 @@
/Packages
/*.xcodeproj
xcuserdata/
DerivedData/
DerivedData/
Package.resolved
docs
2 changes: 1 addition & 1 deletion 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
Expand Down

0 comments on commit b95512f

Please sign in to comment.