From 60022cdd6ffd4b18e6a4bffc244cd6c84cc635a1 Mon Sep 17 00:00:00 2001
From: david-swift
Date: Sun, 6 Oct 2024 23:11:50 +0200
Subject: [PATCH] Migrate to the Aparoksha gitea instance
---
.../ISSUE_TEMPLATE/bug_report.yml | 0
.../ISSUE_TEMPLATE/feature_request.yml | 0
{.github => .gitea}/PULL_REQUEST_TEMPLATE.md | 0
{.github => .gitea}/workflows/docs.yml | 29 ++++++-------------
{.github => .gitea}/workflows/swiftlint.yml | 6 ++--
.gitignore | 1 -
.swiftlint.yml | 5 ----
README.md | 10 +++----
Sources/Meta.docc/Tutorials/CreateBackend.md | 2 +-
9 files changed, 18 insertions(+), 35 deletions(-)
rename {.github => .gitea}/ISSUE_TEMPLATE/bug_report.yml (100%)
rename {.github => .gitea}/ISSUE_TEMPLATE/feature_request.yml (100%)
rename {.github => .gitea}/PULL_REQUEST_TEMPLATE.md (100%)
rename {.github => .gitea}/workflows/docs.yml (63%)
rename {.github => .gitea}/workflows/swiftlint.yml (79%)
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.gitea/ISSUE_TEMPLATE/bug_report.yml
similarity index 100%
rename from .github/ISSUE_TEMPLATE/bug_report.yml
rename to .gitea/ISSUE_TEMPLATE/bug_report.yml
diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.gitea/ISSUE_TEMPLATE/feature_request.yml
similarity index 100%
rename from .github/ISSUE_TEMPLATE/feature_request.yml
rename to .gitea/ISSUE_TEMPLATE/feature_request.yml
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.gitea/PULL_REQUEST_TEMPLATE.md
similarity index 100%
rename from .github/PULL_REQUEST_TEMPLATE.md
rename to .gitea/PULL_REQUEST_TEMPLATE.md
diff --git a/.github/workflows/docs.yml b/.gitea/workflows/docs.yml
similarity index 63%
rename from .github/workflows/docs.yml
rename to .gitea/workflows/docs.yml
index 6491463..f826035 100644
--- a/.github/workflows/docs.yml
+++ b/.gitea/workflows/docs.yml
@@ -4,21 +4,9 @@ on:
push:
branches: ["main"]
-permissions:
- contents: read
- pages: write
- id-token: write
-
-concurrency:
- group: "pages"
- cancel-in-progress: true
-
jobs:
- Deploy:
- environment:
- name: github-pages
- url: ${{ steps.deployment.outputs.page_url }}
- runs-on: macos-15
+ publish:
+ runs-on: david-macbook
steps:
- uses: actions/checkout@v4
- name: Build Docs
@@ -36,10 +24,11 @@ jobs:
run: |
echo "" > docs/index.html;
sed -i '' 's/,2px/,10px/g' docs/css/index.*.css
- - name: Upload Artifact
- uses: actions/upload-pages-artifact@v3
+ - name: Upload
+ uses: wangyucode/sftp-upload-action@v2.0.2
with:
- path: 'docs'
- - name: Deploy to GitHub Pages
- id: deployment
- uses: actions/deploy-pages@v4
+ host: 'volans.uberspace.de'
+ username: 'akforum'
+ password: ${{ secrets.password }}
+ localDir: 'docs'
+ remoteDir: '/var/www/virtual/akforum/meta.aparoksha.dev/'
\ No newline at end of file
diff --git a/.github/workflows/swiftlint.yml b/.gitea/workflows/swiftlint.yml
similarity index 79%
rename from .github/workflows/swiftlint.yml
rename to .gitea/workflows/swiftlint.yml
index 5348bdb..fc5211d 100644
--- a/.github/workflows/swiftlint.yml
+++ b/.gitea/workflows/swiftlint.yml
@@ -3,17 +3,17 @@ name: SwiftLint
on:
push:
paths:
- - '.github/workflows/swiftlint.yml'
+ - '.gitea/workflows/swiftlint.yml'
- '.swiftlint.yml'
- '**/*.swift'
pull_request:
paths:
- - '.github/workflows/swiftlint.yml'
+ - '.gitea/workflows/swiftlint.yml'
- '.swiftlint.yml'
- '**/*.swift'
workflow_dispatch:
paths:
- - '.github/workflows/swiftlint.yml'
+ - '.gitea/workflows/swiftlint.yml'
- '.swiftlint.yml'
- '**/*.swift'
diff --git a/.gitignore b/.gitignore
index e1c5612..3c890f6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,5 +10,4 @@ DerivedData/
/Package.resolved
.Ulysses-Group.plist
/.docc-build
-/io.github.AparokshaUI.Generation.json
/.vscode
\ No newline at end of file
diff --git a/.swiftlint.yml b/.swiftlint.yml
index 9987c66..ef86d06 100644
--- a/.swiftlint.yml
+++ b/.swiftlint.yml
@@ -94,11 +94,6 @@ disabled_rules:
# Custom Rules
custom_rules:
- github_issue:
- name: 'GitHub Issue'
- regex: '//.(TODO|FIXME):.(?!.*(https://github\.com/AparokshaUI/Meta/issues/\d))'
- message: 'The related GitHub issue must be included in a TODO or FIXME.'
- severity: warning
fatal_error:
name: 'Fatal Error'
diff --git a/README.md b/README.md
index 7e0089c..06d3e5a 100644
--- a/README.md
+++ b/README.md
@@ -3,12 +3,12 @@
-
+
Documentation
ยท
-
- GitHub
+
+ Code
@@ -34,7 +34,7 @@ It knows the following layers of UI:
- A scene element is a template for a container holding one or multiple views (e.g., a window).
- A view is a part of the actual UI inside a window, or another view.
-Detailed information can be found in the [docs](https://aparokshaui.github.io/Meta/).
+Detailed information can be found in the [docs](https://meta.aparoksha.dev/).
## Usage
@@ -46,7 +46,7 @@ Follow those steps if you want to create a UI framework.
2. Open the `Package.swift` file.
3. Into the `Package` initializer, under `dependencies`, paste:
```swift
-.package(url: "https://github.com/AparokshaUI/Meta", from: "0.1.0")
+.package(url: https://git.aparoksha.dev/aparoksha/meta", from: "0.1.0")
```
## Thanks
diff --git a/Sources/Meta.docc/Tutorials/CreateBackend.md b/Sources/Meta.docc/Tutorials/CreateBackend.md
index d32a88c..f9161f2 100644
--- a/Sources/Meta.docc/Tutorials/CreateBackend.md
+++ b/Sources/Meta.docc/Tutorials/CreateBackend.md
@@ -23,7 +23,7 @@ let package = Package(
)
],
dependencies: [
- .package(url: "https://github.com/AparokshaUI/Meta", from: "0.1.0"),
+ .package(url: "https://git.aparoksha.dev/aparoksha/meta", from: "0.1.0"),
.package(url: "https://github.com/david-swift/TermKit", branch: "main")
],
targets: [