-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
228 additions
and
319 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ on: | |
|
||
jobs: | ||
chatops: | ||
name: ChatOps | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,54 @@ | ||
name: docs | ||
name: docs | ||
|
||
on: | ||
repository_dispatch: | ||
types: [docs-command] | ||
types: [docs-command] | ||
|
||
jobs: | ||
# create docs. | ||
docs: | ||
name: docs | ||
runs-on: ubuntu-latest | ||
name: Docs | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# checkout the `main` branch. | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }} | ||
ref: ${{ github.event.client_payload.pull_request.head.ref }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }} | ||
ref: ${{ github.event.client_payload.pull_request.head.ref }} | ||
# create documentation for `Swiftagram`. | ||
- name: Docs (Swiftagram) | ||
uses: SwiftDocOrg/swift-doc@master | ||
- name: Docs (Swiftagram) | ||
uses: SwiftDocOrg/swift-doc@master | ||
with: | ||
base-url: "https://sbertix.github.io/Swiftagram/Swiftagram/" | ||
format: "html" | ||
inputs: "Sources" | ||
module-name: Swiftagram | ||
output: docs/Swiftagram | ||
base-url: "https://sbertix.github.io/Swiftagram/Swiftagram/" | ||
format: "html" | ||
inputs: "Sources" | ||
module-name: Swiftagram | ||
output: docs/Swiftagram | ||
# create documentation for `SwiftagramCrypto`. | ||
- name: Docs (SwiftagramCrypto) | ||
uses: SwiftDocOrg/swift-doc@master | ||
- name: Docs (SwiftagramCrypto) | ||
uses: SwiftDocOrg/swift-doc@master | ||
with: | ||
base-url: "https://sbertix.github.io/Swiftagram/SwiftagramCrypto/" | ||
format: "html" | ||
inputs: "Sources" | ||
module-name: SwiftagramCrypto | ||
output: docs/SwiftagramCrypto | ||
base-url: "https://sbertix.github.io/Swiftagram/SwiftagramCrypto/" | ||
format: "html" | ||
inputs: "Sources" | ||
module-name: SwiftagramCrypto | ||
output: docs/SwiftagramCrypto | ||
# update permissions. | ||
- name: Update Permissions | ||
run: 'sudo chown --recursive $USER docs' | ||
- name: Update Permissions | ||
run: 'sudo chown --recursive $USER docs' | ||
# publish to GitHub pages. | ||
- name: Publish | ||
uses: JamesIves/github-pages-deploy-action@releases/v3 | ||
- name: Publish | ||
uses: JamesIves/github-pages-deploy-action@releases/v3 | ||
with: | ||
ACCESS_TOKEN: ${{ secrets.CHATOPS_PAT }} | ||
BRANCH: gh-pages | ||
FOLDER: docs | ||
# notify success with a reaction. | ||
- name: Notify (Success) | ||
uses: peter-evans/create-or-update-comment@v1 | ||
ACCESS_TOKEN: ${{ secrets.CHATOPS_PAT }} | ||
BRANCH: gh-pages | ||
FOLDER: docs | ||
# notify. | ||
- name: Notify | ||
uses: peter-evans/create-or-update-comment@v1 | ||
with: | ||
comment-id: ${{ github.event.client_payload.github.payload.comment.id }} | ||
reaction-type: hooray | ||
# notify failure. | ||
- name: Notify (Failure) | ||
uses: peter-evans/create-or-update-comment@v1 | ||
if: ${{ failure() }} | ||
with: | ||
issue-number: ${{ github.event.client_payload.github.payload.issue.number }} | ||
body: | | ||
Hey @${{ github.event.client_payload.github.actor }} :muscle: | ||
Unfortunately, the docs couldn't be published.\ | ||
A maintener will get to you soon. | ||
comment-id: ${{ github.event.client_payload.github.payload.comment.id }} | ||
reaction-type: +1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: push | ||
name: push | ||
|
||
on: | ||
push: | ||
|
@@ -13,22 +13,39 @@ on: | |
jobs: | ||
# lint the code. | ||
lint: | ||
runs-on: ubuntu-latest | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Lint | ||
uses: norio-nomura/[email protected] | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Lint | ||
uses: norio-nomura/[email protected] | ||
with: | ||
args: --strict | ||
args: --strict | ||
|
||
# build the library. | ||
build: | ||
needs: lint | ||
runs-on: macos-latest | ||
build-combine: | ||
name: Build (Combine) | ||
needs: lint | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Build | ||
run: swift build | ||
|
||
# build the library using `Combine X`. | ||
build-combine-x: | ||
name: Build (CombineX) | ||
needs: lint | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Build | ||
run: swift build | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Build | ||
env: | ||
CX_COMBINE_IMPLEMENTATION: combinex | ||
run: swift build |
Oops, something went wrong.