Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.11.0 #45

Merged
merged 36 commits into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
f0709f6
fix: fix missing tab for file sharing
aanon4 Apr 21, 2023
36a4442
Initial pass at reorganization
hickey Jun 10, 2023
ce5cecf
Added beginnings of package building code
hickey Jun 11, 2023
39488ac
Now making directories during package build
hickey Jun 11, 2023
b616db4
Minor fixes to populate-meshchat-api-fs.sh
hickey Jun 11, 2023
4805ed6
Fixed testing tag for version number
hickey Jun 11, 2023
e29f7fa
Updated GitHub workflow
hickey Jun 11, 2023
a796be3
Fixed incorrect param order for tar in ipk-build.sh
hickey Jun 11, 2023
63b0b5e
Storing generated package as an artifact
hickey Jun 11, 2023
4dd3c9c
Refactored build API workflow
hickey Jun 11, 2023
3156de7
Added build MeshChat package job
hickey Jun 11, 2023
8e52bd9
Removed build file as no longer needed
hickey Jun 11, 2023
1550bb1
Updating version info in meshchatconfig.lua
hickey Jun 11, 2023
f324cbf
More reorganization of files
hickey Jun 12, 2023
451216f
Fixed installation of cgi-bin after reorg
hickey Jun 12, 2023
7ddcb0e
Fixed the installation of web files
hickey Jun 12, 2023
aa479b2
Added branch name and commit ref to testing builds
hickey Jun 19, 2023
8155f3a
Moved MeshChat source to top level
hickey Jul 17, 2023
c8be3a8
feat: Set send channel when channel filter changed
hickey Jun 13, 2023
3ec6663
docs: Updated README with history of MeshChat
hickey Sep 21, 2023
7947b48
chore: Added Bug Report issue template
hickey Sep 21, 2023
9fd375f
chore: Added feature request issue template
hickey Sep 21, 2023
3696b24
build: Updates to better name packages
hickey Sep 29, 2023
08114cb
Update Bug Report.yml
hickey Nov 4, 2023
b70bd0a
fix: set epoch in send_message API even if not specified
hickey Dec 9, 2023
5e9c8f6
feat: add message class abstracting message handling (#23)
hickey Dec 22, 2023
8ff5f6e
add more fields to bug issue template
hickey Jan 3, 2024
312a6bd
chore: remove packages from repo
hickey Feb 5, 2024
d06ca05
chore: add release-it config file for automated releases
hickey Feb 5, 2024
fabd985
fix: discover zone name from /etc/config.mesh (#36)
hickey Feb 6, 2024
962b0c3
Add GitHub Actions workflow to automate releases (#40)
hickey Feb 13, 2024
497f33c
feat: Add documentation (#44)
hickey Feb 18, 2024
03186f8
chore(ci): update release pipeline
hickey Feb 18, 2024
8d97089
feat: allow admin to set default channel (#19)
hickey Mar 1, 2024
23e2d86
Merge branch 'release'
hickey Mar 1, 2024
316bc83
add LICENSE file
hickey Mar 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 102 additions & 0 deletions .github/ISSUE_TEMPLATE/Bug Report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: Bug Report
description: File a bug for the MeshChat project
title: "[Bug]: "
labels:
- bug
- needs triage
assignees:
- hickey
body:
- type: markdown
attributes:
value: |
Thank you for taking the time to create a bug report. Please
attempt to fill in as much information as you are able to.
- type: input
id: contact
attributes:
label: Contact Details
description: How can we get in touch with you if we need more info?
placeholder: ex. [email protected]
validations:
required: false
- type: dropdown
id: version
attributes:
label: Version
description: Version of MeshChat?
options:
- v1.x
- v2.0 - v2.8
- v2.9
- v2.10
- development build (include version in what happened)
default: 0
validations:
required: true
- type: dropdown
id: system_type
attributes:
label: System Type
description: What type of system is MeshChat installed on?
options:
- AREDN node
- Linux
- Unknown
default: 0
validations:
required: true
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen?
placeholder: |
Describe to the best of your ability what happened or what you
did to trigger the problem.
validations:
required: true
- type: textarea
id: config
attributes:
label: MeshChat configuration
description: |
If you are the admin of the MeshChat instance, it is asked that
you past your MeshChat configuration file between the back ticks
to aid in troubleshooting.
value: |
```
<Insert config file here>
```
- type: dropdown
id: connection_type
attributes:
label: Connection type
multiple: false
description: |
How is the node that is running the MeshChat instance connected?
If you know the mesh network that the node is connected to please
indicate the name of the mesh network below in the node name field.
options:
- Non-connected mesh network
- Mesh network connected through IP tunnel
- Mesh network connected through a supernode
- I don't know
- type: input
id: node_name
attributes:
label: Node name
description: Please specify the node name where MeshChat runs.
- type: dropdown
id: browsers
attributes:
label: What browsers are you seeing the problem on?
multiple: true
options:
- Firefox
- Chrome
- Safari
- Microsoft Edge
- Brave
- Vivialdi
- Other
46 changes: 46 additions & 0 deletions .github/ISSUE_TEMPLATE/Feature Request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Feature Request
description: Looking to add an enhancement to the MeshChat project
title: "[Feature]: "
labels:
- enhancement
assignees:
- hickey
body:
- type: markdown
attributes:
value: |
Thank you for taking the time to let us know about your idea. Please
attempt to fill in as much information as you are able to.
- type: input
id: contact
attributes:
label: Contact Details
description: How can we get in touch with you if we need more info?
placeholder: ex. [email protected]
validations:
required: false
- type: dropdown
id: enhancement_type
attributes:
label: Enhancement Type
description: What sort of enhancement is this?
options:
- Graphical interface
- Message formatting
- File sharing
- API improvements
- Documentation
- Installation method
- Other
default: 0
validations:
required: true
- type: textarea
id: description
attributes:
label: What is your idea or what can be improved?
description: Please be descriptive so that we can better understand the enhancement.
placeholder: Tell us your idea.
validations:
required: true

36 changes: 36 additions & 0 deletions .github/workflows/build-packages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build MeshChat Packages
on: push

jobs:
calculate-version:
runs-on: ubuntu-latest
outputs:
build_version: ${{ steps.build-version-slug.outputs.build_version }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- id: build-version-slug
run: |
date=$(date +%Y%m%d)
branch="${GITHUB_REF_NAME}"
commit=$(git rev-parse --short HEAD)
version="${date}-${branch}-${commit}"

echo "build_version=$version" >> $GITHUB_OUTPUT

build-meshchat-package:
needs: calculate-version
uses:
./.github/workflows/workflow-meshchat-package.yaml
with:
build_version: ${{ needs.calculate-version.outputs.build_version }}
build_dir: package/meshchat-ipkg

build-meshchat-api-package:
needs: calculate-version
uses:
./.github/workflows/workflow-meshchat-api-package.yaml
with:
build_version: ${{ needs.calculate-version.outputs.build_version }}
build_dir: package/meshchat-ipkg
64 changes: 64 additions & 0 deletions .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Publish MeshChat Documentation
on:
workflow_call:
inputs:
build_version:
required: true
type: string

jobs:
build:
runs-on: ubuntu-latest
container:
image: jtackaberry/luadox:latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: release
- run: luadox -c luadox.conf
- name: Fix permissions
run: |
chmod -c -R +rX "_site/" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Update version strings
run: |
find docs -type f --exec sed -i "s/%VERSION%/${{ inputs.build_version }}/" {} \;
run: |
echo ::group::Archive artifact
tar -C "_site" \
-cvf "$RUNNER_TEMP/artifact.tar" \
--exclude=.git \
--exclude=.github \
.
echo ::endgroup::
- name: Upload artifact
id: upload-artifact
uses: actions/upload-artifact@v4
with:
name: github-pages
path: ${{ runner.temp }}/artifact.tar
retention-days: 1
if-no-files-found: error

# Deploy job
deploy:
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action
23 changes: 17 additions & 6 deletions .github/workflows/release-meshchat.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Release MeshChat Package
on:
pull_request:
types: [closed]
branches: [release]
on: workflow_dispatch

jobs:
create-release:
Expand All @@ -17,6 +14,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: release
- name: git config
run: |
git config user.name "${GITHUB_ACTOR}"
Expand All @@ -32,15 +30,16 @@ jobs:
build-meshchat-package:
needs: create-release
uses:
./.github/workflows/build-meshchat-package.yaml
./.github/workflows/workflow-meshchat-package.yaml
with:
ref: release
build_version: ${{ needs.create-release.outputs.build_version }}
build_dir: package/meshchat-ipkg

build-meshchat-api-package:
needs: create-release
uses:
./.github/workflows/build-meshchat-api-package.yaml
./.github/workflows/workflow-meshchat-api-package.yaml
with:
build_version: ${{ needs.create-release.outputs.build_version }}
build_dir: package/meshchat-ipkg
Expand Down Expand Up @@ -70,3 +69,15 @@ jobs:
done
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_IT_TOKEN }}

update-documentation:
runs-on: ubuntu-latest
needs: create-release
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- uses: ./.github/workflows/publish-docs.yaml
with:
build_version: ${{ needs.create-release.outputs.build_version }}
36 changes: 36 additions & 0 deletions .github/workflows/workflow-meshchat-api-package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build MeshChat API Package
on:
workflow_call:
inputs:
build_version:
required: true
type: string
build_dir:
required: true
type: string
ref:
required: false
type: string
default: ${{ github.ref_name }}

jobs:
create-meshchat-api-package:
runs-on: ubuntu-latest
# container:
# image: registry.gitlab.com/wt0f/gitlab-runner-images/shell:latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ inputs.ref }}
- run: echo ${{ inputs.build_version }} > VERSION
- run: package/populate-meshchat-api-fs.sh ${{ inputs.build_dir }}
- run: package/update-version.sh ${{ inputs.build_dir }}
- run: package/ipk-build.sh ${{ inputs.build_dir }}
- id: detect-package-file
run: echo "file=$(ls -1 meshchat-api_*.ipk)" >> $GITHUB_OUTPUT
- run: echo "${{ steps.detect-package-file.outputs.file }}"
- uses: actions/upload-artifact@v4
with:
name: ${{ steps.detect-package-file.outputs.file }}
path: ${{ steps.detect-package-file.outputs.file }}
41 changes: 41 additions & 0 deletions .github/workflows/workflow-meshchat-package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build MeshChat Package
on:
workflow_call:
inputs:
build_version:
required: true
type: string
build_dir:
required: true
type: string
ref:
required: false
type: string
default: ${{ github.ref_name }}

jobs:
create-meshchat-package:
runs-on: ubuntu-latest
# container:
# image: registry.gitlab.com/wt0f/gitlab-runner-images/shell:latest
outputs:
package_file: ${{ steps.detect-package-file.outputs.file }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ inputs.ref }}
# - run: info "Populating the filesystem with MeshChat files"
- run: echo ${{ inputs.build_version }} > VERSION
- run: package/populate-meshchat-fs.sh ${{ inputs.build_dir }}
# - run: info "Updating version numbers to "
- run: package/update-version.sh ${{ inputs.build_dir }}
# - run: info "Packing up MeshChat files"
- run: package/ipk-build.sh ${{ inputs.build_dir }}
- id: detect-package-file
run: echo "file=$(ls -1 meshchat_*.ipk)" >> $GITHUB_OUTPUT
- run: echo "${{ steps.detect-package-file.outputs.file }}"
- uses: actions/upload-artifact@v4
with:
name: ${{ steps.detect-package-file.outputs.file }}
path: ${{ steps.detect-package-file.outputs.file }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs/.markupserve_index
Loading
Loading