Migrate to the Aparoksha gitea instance
All checks were successful
SwiftLint / SwiftLint (push) Successful in 4s
Deploy Docs / publish (push) Successful in 18s

This commit is contained in:
david-swift 2024-10-07 09:14:05 +02:00
parent f7144643b2
commit edb78d3936
10 changed files with 26 additions and 40 deletions

View File

@ -4,21 +4,9 @@ on:
push: push:
branches: ["main"] branches: ["main"]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs: jobs:
Deploy: publish:
environment: runs-on: david-macbook
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: macos-15
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Build Docs - name: Build Docs
@ -31,15 +19,16 @@ jobs:
xcrun docc process-archive transform-for-static-hosting \ xcrun docc process-archive transform-for-static-hosting \
"$PWD/.derivedData/Build/Products/Debug/MetaSQLite.doccarchive" \ "$PWD/.derivedData/Build/Products/Debug/MetaSQLite.doccarchive" \
--output-path "docs" \ --output-path "docs" \
--hosting-base-path "meta-sqlite" --hosting-base-path "/"
- name: Modify Docs - name: Modify Docs
run: | run: |
echo "<script>window.location.href += \"/documentation/metasqlite\"</script>" > docs/index.html; echo "<script>window.location.href += \"/documentation/metasqlite\"</script><p>Please enable JavaScript to view the documentation <a href='/documentation/metasqlite'>here</a>.</p>" > docs/index.html;
sed -i '' 's/,2px/,10px/g' docs/css/index.*.css sed -i '' 's/,2px/,10px/g' docs/css/index.*.css
- name: Upload Artifact - name: Upload
uses: actions/upload-pages-artifact@v3 uses: wangyucode/sftp-upload-action@v2.0.2
with: with:
path: 'docs' host: 'volans.uberspace.de'
- name: Deploy to GitHub Pages username: 'akforum'
id: deployment password: ${{ secrets.password }}
uses: actions/deploy-pages@v4 localDir: 'docs'
remoteDir: '/var/www/virtual/akforum/meta-sqlite.aparoksha.dev/'

View File

@ -3,17 +3,17 @@ name: SwiftLint
on: on:
push: push:
paths: paths:
- '.github/workflows/swiftlint.yml' - '.gitea/workflows/swiftlint.yml'
- '.swiftlint.yml' - '.swiftlint.yml'
- '**/*.swift' - '**/*.swift'
pull_request: pull_request:
paths: paths:
- '.github/workflows/swiftlint.yml' - '.gitea/workflows/swiftlint.yml'
- '.swiftlint.yml' - '.swiftlint.yml'
- '**/*.swift' - '**/*.swift'
workflow_dispatch: workflow_dispatch:
paths: paths:
- '.github/workflows/swiftlint.yml' - '.gitea/workflows/swiftlint.yml'
- '.swiftlint.yml' - '.swiftlint.yml'
- '**/*.swift' - '**/*.swift'
@ -21,7 +21,7 @@ jobs:
SwiftLint: SwiftLint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v4
- name: SwiftLint - name: SwiftLint
uses: norio-nomura/action-swiftlint@3.2.1 uses: norio-nomura/action-swiftlint@3.2.1
with: with:

1
.gitignore vendored
View File

@ -10,5 +10,4 @@ DerivedData/
/Package.resolved /Package.resolved
.Ulysses-Group.plist .Ulysses-Group.plist
/.docc-build /.docc-build
/io.github.AparokshaUI.Generation.json
/.vscode /.vscode

View File

@ -94,11 +94,6 @@ disabled_rules:
# Custom Rules # Custom Rules
custom_rules: custom_rules:
github_issue:
name: 'GitHub Issue'
regex: '//.(TODO|FIXME):.(?!.*(https://github\.com/AparokshaUI/meta-sqlite/issues/\d))'
message: 'The related GitHub issue must be included in a TODO or FIXME.'
severity: warning
fatal_error: fatal_error:
name: 'Fatal Error' name: 'Fatal Error'

View File

@ -22,13 +22,16 @@ let package = Package(
) )
], ],
dependencies: [ dependencies: [
.package(url: "https://github.com/AparokshaUI/Meta", branch: "main"), .package(url: "https://git.aparoksha.dev/aparoksha/meta", branch: "main"),
.package(url: "https://github.com/stephencelis/SQLite.swift", from: "0.15.3") .package(url: "https://github.com/stephencelis/SQLite.swift", from: "0.15.3")
], ],
targets: [ targets: [
.target( .target(
name: "MetaSQLite", name: "MetaSQLite",
dependencies: ["Meta", .product(name: "SQLite", package: "SQLite.swift")], dependencies: [
.product(name: "Meta", package: "meta"),
.product(name: "SQLite", package: "SQLite.swift")
],
path: "Sources" path: "Sources"
), ),
.executableTarget( .executableTarget(

View File

@ -3,22 +3,22 @@
</p> </p>
<p align="center"> <p align="center">
<a href="https://aparokshaui.github.io/meta-sqlite/"> <a href="https://meta-sqlite.aparoksha.dev/">
Documentation Documentation
</a> </a>
· ·
<a href="https://github.com/AparokshaUI/meta-sqlite"> <a href="https://git.aparoksha.dev/aparoksha/meta-sqlite">
GitHub Code
</a> </a>
</p> </p>
_SQLite for Meta_ is a simple extension for the [Meta](https://aparokshaui.github.io/Meta) framework remembering state data between app launches. _SQLite for Meta_ is a simple extension for the [Meta](https://meta.aparoksha.dev/) framework remembering state data between app launches.
## Thanks ## Thanks
### Dependencies ### Dependencies
- [Meta](https://github.com/AparokshaUI/Meta) licensed under the [MIT License](https://github.com/AparokshaUI/Meta/blob/main/LICENSE.md) - [Meta](https://git.aparoksha.dev/aparoksha/meta) licensed under the [MIT License](https://git.aparoksha.dev/aparoksha/meta/src/branch/main/LICENSE.md)
- [SQLite.swift](https://github.com/stephencelis/SQLite.swift) licensed under the [MIT License](https://github.com/stephencelis/SQLite.swift/blob/master/LICENSE.txt) - [SQLite.swift](https://github.com/stephencelis/SQLite.swift) licensed under the [MIT License](https://github.com/stephencelis/SQLite.swift/blob/master/LICENSE.txt)
### Other Thanks ### Other Thanks

View File

@ -1,4 +1,4 @@
# ``MetaSQLite`` # ``MetaSQLite``
_SQLite for Meta_ is a simple extension for the [Meta](https://aparokshaui.github.io/Meta) framework remembering state data between app launches. _SQLite for Meta_ is a simple extension for the [Meta](https://meta.aparoksha.dev/) framework, remembering state data between app launches.