Skip to content

Commit

Permalink
Update DocC Plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ns-vasilev committed Apr 30, 2024
1 parent befcd22 commit 6d0fae1
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .github/actions/publish_pages/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ runs:
--transform-for-static-hosting \
--hosting-base-path ${{ inputs.base_path }};
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: docs

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
path: docs
18 changes: 13 additions & 5 deletions .github/workflows/publish-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ concurrency:
cancel-in-progress: true

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
build:
runs-on: macos-12
strategy:
fail-fast: false
Expand All @@ -40,4 +37,15 @@ jobs:
uses: ./.github/actions/publish_pages
with:
target: ${{ matrix.target }}
base_path: ${{ matrix.base_path }}
base_path: ${{ matrix.base_path }}

deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}%
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/space-code/concurrency.git", .upToNextMajor(from: "0.0.1")),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.1.0"),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0"),
.package(url: "https://github.com/space-code/log.git", .upToNextMajor(from: "1.1.0")),
.package(url: "https://github.com/space-code/atomic.git", .upToNextMajor(from: "1.0.0")),
.package(
Expand Down
2 changes: 1 addition & 1 deletion [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/space-code/concurrency.git", .upToNextMajor(from: "0.0.1")),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.1.0"),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0"),
.package(url: "https://github.com/space-code/log.git", .upToNextMajor(from: "1.1.0")),
.package(url: "https://github.com/space-code/atomic.git", .upToNextMajor(from: "1.0.0")),
.package(
Expand Down
2 changes: 1 addition & 1 deletion [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/space-code/concurrency.git", .upToNextMajor(from: "0.0.1")),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.1.0"),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0"),
.package(url: "https://github.com/space-code/log.git", .upToNextMajor(from: "1.1.0")),
.package(url: "https://github.com/space-code/atomic.git", .upToNextMajor(from: "1.0.0")),
.package(
Expand Down

0 comments on commit 6d0fae1

Please sign in to comment.