-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into ben-desktop-tray
- Loading branch information
Showing
459 changed files
with
4,852 additions
and
6,282 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,27 +1,14 @@ | ||
name: Docs | ||
name: Reusable Docs Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
workflow_call: | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-20.04 | ||
name: Build Latest API Docs | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
# ---- setup of systems | ||
|
||
- uses: actions/checkout@v4 | ||
- name: Setup flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
|
@@ -52,25 +39,21 @@ jobs: | |
run: | | ||
cargo doc -p acter -p acter-core -p matrix-sdk-store-media-cache-wrapper | ||
echo --- Moving docs | ||
mv target/doc/ docs/static/api/main/rust | ||
mv target/doc/ docs/api/main/rust | ||
- name: Build Dart App | ||
run: flutter pub global run dartdoc --include-external integration_test/main_test.dart --output ../docs/static/api/main/app/ | ||
run: flutter pub global run dartdoc --include-external integration_test/main_test.dart --output ../docs/api/main/app/ | ||
working-directory: app | ||
|
||
- name: Checking for bindings | ||
run: ls -ltas packages/rust_sdk/lib/ | ||
|
||
- name: Build Dart SDK | ||
run: flutter pub global run dartdoc --output ../../../docs/static/api/main/dart-sdk/ | ||
run: flutter pub global run dartdoc --output ../../docs/api/main/dart-sdk/ | ||
working-directory: packages/rust_sdk | ||
|
||
# ---- Finalisation for github pages | ||
|
||
- name: build zola | ||
uses: shalzz/[email protected] | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
env: | ||
BUILD_DIR: docs | ||
PAGES_BRANCH: "gh-pages" | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
# Upload the docs | ||
path: 'docs/' |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Docs | ||
|
||
on: | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
|
||
docs: | ||
uses: ./.github/workflows/build-docs.yml | ||
secrets: inherit | ||
|
||
deploy: | ||
runs-on: ubuntu-20.04 | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
needs: | ||
- docs | ||
name: Build Latest API Docs | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions
2
.github/workflows/demo.yml → .github/workflows/deploy-demo.yml
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,8 +1,6 @@ | ||
name: Demo builds | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Deploy Docs | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
|
||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
|
||
docs: | ||
uses: ./.github/workflows/build-docs.yml | ||
secrets: inherit | ||
|
||
deploy: | ||
runs-on: ubuntu-20.04 | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
needs: | ||
- docs | ||
name: Build Latest API Docs | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
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
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 |
---|---|---|
|
@@ -4,6 +4,9 @@ concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.target || 'all' }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: write | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
|
@@ -66,9 +69,8 @@ jobs: | |
tag: v${{ inputs.new_version || steps.version.outputs.version }} | ||
version: ${{ inputs.new_version || steps.version.outputs.version }} | ||
build_num: ${{ steps.build_num.outputs.build_num }} | ||
prev_tag: ${{ inputs.prev_tag || 'release-latest' }} | ||
targets: ${{ inputs.target || 'all' }} | ||
release_title: ${{ inputs.custom_title || 'Release'}} | ||
release_title_prefix: ${{ inputs.custom_title || 'Release'}} | ||
steps: | ||
- id: version | ||
# the suffix 0 allows us to provide up to 9 more hotfixes on the same day | ||
|
@@ -83,7 +85,7 @@ jobs: | |
with: | ||
build_num: ${{ needs.tags.outputs.build_num }} | ||
version: ${{ needs.tags.outputs.version }} | ||
release_title: ${{ needs.tags.outputs.release_title }} ${{ needs.tags.outputs.tag }} | ||
release_title: "${{ needs.tags.outputs.release_title_prefix }} ${{ needs.tags.outputs.tag }}" | ||
release_tag: ${{ needs.tags.outputs.tag }} | ||
targets: ${{ needs.tags.outputs.targets }} | ||
release: true | ||
|
@@ -354,7 +356,7 @@ jobs: | |
###### #### ## ## ## ####### ######## ## ####### ######## ######## #### ###### ## ## | ||
|
||
publish: | ||
environment: nightly | ||
environment: release | ||
runs-on: ubuntu-latest | ||
name: Publish | ||
# if: ${{ github.event.schedule }} | ||
|
@@ -365,7 +367,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.PAT }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: actions/download-artifact@v3 | ||
with: | ||
|
@@ -377,21 +379,10 @@ jobs: | |
git config --global user.name 'Sari' | ||
git config --global user.email '[email protected]' | ||
- name: "Generate docs" | ||
run: | | ||
echo "+++" > docs/content/releases/${{ needs.tags.outputs.version }}.md | ||
echo "title = \" ${{ needs.tags.outputs.tag }}\"" >> docs/content/releases/${{ needs.tags.outputs.version }}.md | ||
echo "template = \"releases/release.html\"" >> docs/content/releases/${{ needs.tags.outputs.version }}.md | ||
echo "date = `date +%Y-%m-%d`" >> docs/content/releases/${{ needs.tags.outputs.version }}.md | ||
echo "+++" >> docs/content/releases/${{ needs.tags.outputs.version }}.md | ||
echo "" >> docs/content/releases/${{ needs.tags.outputs.version }}.md | ||
cat CHANGELOG.md >> docs/content/releases/${{ needs.tags.outputs.version }}.md | ||
- name: Clear old docs | ||
continue-on-error: true | ||
run: | | ||
git rm .changes/*.md | ||
git commit -m "Clearing .changes for ${{ needs.tags.outputs.version }}" | ||
- name: "Update flatpack version" | ||
run : | | ||
|
@@ -400,7 +391,6 @@ jobs: | |
- name: Tag for release | ||
run: | | ||
git add "docs/content/releases/${{ needs.tags.outputs.version }}.md" | ||
echo "Add release ${{ needs.tags.outputs.tag }}" | ||
git commit -m "Releasing ${{ needs.tags.outputs.tag }}" | ||
git tag ${{ needs.tags.outputs.tag }} | ||
|
@@ -413,7 +403,7 @@ jobs: | |
# publish this full release now | ||
draft: true | ||
generate_release_notes: false | ||
name: ${{ needs.tags.outputs.release_title }} ${{ needs.tags.outputs.tag }} | ||
name: "${{ needs.tags.outputs.release_title_prefix }} ${{ needs.tags.outputs.tag }}" | ||
tag_name: ${{ needs.tags.outputs.tag }} | ||
body_path: CHANGELOG.md | ||
prerelease: false | ||
|
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,3 +0,0 @@ | ||
[submodule "docs/themes/adidoks"] | ||
path = docs/themes/adidoks | ||
url = https://github.com/aaranxu/adidoks.git | ||
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.