Skip to content

Commit

Permalink
Update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
quanshousio committed Aug 11, 2024
1 parent 15293ea commit 9ad34a7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build
name: Build

on:
push:
Expand All @@ -7,22 +7,23 @@ on:
branches: [main]

jobs:
swiftlint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: swiftlint
uses: norio-nomura/[email protected]
build:
runs-on: macos-latest

strategy:
matrix:
platform: [iOS, tvOS, watchOS, macOS, mac-catalyst]

steps:
- name: checkout
uses: actions/checkout@v2
- name: build
- name: Checkout repository
uses: actions/checkout@v4

- name: Run swiftlint
uses: cirruslabs/swiftlint-action@v1
with:
version: latest

- name: Run xcodebuild
run: |
PLATFORM=${{ matrix.platform }}
if [[ $PLATFORM == iOS ]]; then
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/docc.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
name: docc
name: DocC documentation

on:
push:
tags:
- '*'
push:
tags:
- "*"

jobs:
docbuild:
runs-on: macos-latest

steps:
- name: checkout
uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: docc
run: ./toastui docc deploy

- name: Deploy documentation
run: ./toastui docc deploy

0 comments on commit 9ad34a7

Please sign in to comment.