Skip to content

Commit

Permalink
Merge bugfixes into main
Browse files Browse the repository at this point in the history
  • Loading branch information
sbertix committed May 8, 2021
2 parents 84b7fd7 + f63df1a commit 90b17ff
Show file tree
Hide file tree
Showing 12 changed files with 228 additions and 319 deletions.
1 change: 1 addition & 0 deletions .github/workflows/chatops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

jobs:
chatops:
name: ChatOps
runs-on: ubuntu-latest

steps:
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/comments.yml

This file was deleted.

81 changes: 35 additions & 46 deletions .github/workflows/docs.yml
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
45 changes: 31 additions & 14 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: push
name: push

on:
push:
Expand All @@ -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
Loading

0 comments on commit 90b17ff

Please sign in to comment.