mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-04-26 20:15:11 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6303800a62 | |||
| 06184d8c9f | |||
| 7c20e22b75 | |||
| 3f862b58cb | |||
| 046a6356f3 | |||
| 3af0240ff5 | |||
| 5dcfff51cf |
@@ -71,7 +71,7 @@ runs:
|
|||||||
|
|
||||||
- name: Install timelord-cli and git-warp-time
|
- name: Install timelord-cli and git-warp-time
|
||||||
if: steps.check-binaries.outputs.need-install == 'true'
|
if: steps.check-binaries.outputs.need-install == 'true'
|
||||||
uses: https://github.com/taiki-e/install-action@74e87cbfa15a59692b158178d8905a61bf6fca95 # v2
|
uses: https://github.com/taiki-e/install-action@cf525cb33f51aca27cd6fa02034117ab963ff9f1 # v2
|
||||||
with:
|
with:
|
||||||
tool: git-warp-time,timelord-cli@3.0.1
|
tool: git-warp-time,timelord-cli@3.0.1
|
||||||
|
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ jobs:
|
|||||||
if [[ ${{ forge.ref_name }} =~ ^v+[0-9]\.+[0-9]\.+[0-9]$ ]]; then
|
if [[ ${{ forge.ref_name }} =~ ^v+[0-9]\.+[0-9]\.+[0-9]$ ]]; then
|
||||||
# Use the "stable" component for tagged semver releases
|
# Use the "stable" component for tagged semver releases
|
||||||
COMPONENT="stable"
|
COMPONENT="stable"
|
||||||
elif [[ ${{ forge.ref }} =~ ^refs/tags/^v+[0-9]\.+[0-9]\.+[0-9] ]]; then
|
elif [[ ${{ forge.ref_name }} =~ ^v+[0-9]\.+[0-9]\.+[0-9] ]]; then
|
||||||
# Use the "unstable" component for tagged semver pre-releases
|
# Use the "unstable" component for tagged semver pre-releases
|
||||||
COMPONENT="unstable"
|
COMPONENT="unstable"
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ jobs:
|
|||||||
RELEASE_SUFFIX=""
|
RELEASE_SUFFIX=""
|
||||||
TAG_NAME="${{ github.ref_name }}"
|
TAG_NAME="${{ github.ref_name }}"
|
||||||
# Extract version from tag (remove v prefix if present)
|
# Extract version from tag (remove v prefix if present)
|
||||||
TAG_VERSION=$(echo "$TAG_NAME" | sed 's/^v//')
|
TAG_VERSION=$(echo "$TAG_NAME" | sed 's/^v//' | tr '-' '~')
|
||||||
|
|
||||||
# Create spec file with tag version
|
# Create spec file with tag version
|
||||||
sed -e "s/^Version:.*$/Version: $TAG_VERSION/" \
|
sed -e "s/^Version:.*$/Version: $TAG_VERSION/" \
|
||||||
@@ -270,9 +270,13 @@ jobs:
|
|||||||
|
|
||||||
# Determine the group based on ref type and branch
|
# Determine the group based on ref type and branch
|
||||||
if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then
|
if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then
|
||||||
GROUP="stable"
|
|
||||||
# For tags, extract the tag name for version info
|
# For tags, extract the tag name for version info
|
||||||
TAG_NAME="${{ github.ref_name }}"
|
TAG_NAME="${{ github.ref_name }}"
|
||||||
|
if [[ "$TAG_NAME" == *"-"* ]]; then
|
||||||
|
GROUP="unstable"
|
||||||
|
else
|
||||||
|
GROUP="stable"
|
||||||
|
fi
|
||||||
elif [ "${{ github.ref_name }}" = "main" ]; then
|
elif [ "${{ github.ref_name }}" = "main" ]; then
|
||||||
GROUP="dev"
|
GROUP="dev"
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Check for file changes
|
- name: Check for file changes
|
||||||
uses: https://github.com/dorny/paths-filter@v4
|
uses: https://github.com/dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4
|
||||||
id: filter
|
id: filter
|
||||||
with:
|
with:
|
||||||
filters: |
|
filters: |
|
||||||
|
|||||||
@@ -199,6 +199,28 @@ jobs:
|
|||||||
registry_user: ${{ vars.BUILTIN_REGISTRY_USER || github.actor }}
|
registry_user: ${{ vars.BUILTIN_REGISTRY_USER || github.actor }}
|
||||||
registry_password: ${{ secrets.BUILTIN_REGISTRY_PASSWORD || secrets.GITHUB_TOKEN }}
|
registry_password: ${{ secrets.BUILTIN_REGISTRY_PASSWORD || secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
release-binaries:
|
||||||
|
name: "Release Binaries"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- build-release
|
||||||
|
- build-maxperf
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
steps:
|
||||||
|
- name: Download binary artifacts
|
||||||
|
uses: forgejo/download-artifact@v4
|
||||||
|
with:
|
||||||
|
pattern: conduwuit*
|
||||||
|
path: binaries
|
||||||
|
merge-multiple: true
|
||||||
|
- name: Create Release and Upload
|
||||||
|
uses: https://github.com/softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
draft: true
|
||||||
|
files: binaries/*
|
||||||
|
|
||||||
mirror_images:
|
mirror_images:
|
||||||
name: "Mirror Images"
|
name: "Mirror Images"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -6,10 +6,10 @@
|
|||||||
"message": "Welcome to Continuwuity! Important announcements about the project will appear here."
|
"message": "Welcome to Continuwuity! Important announcements about the project will appear here."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 11,
|
"id": 12,
|
||||||
"mention_room": false,
|
"mention_room": false,
|
||||||
"date": "2026-04-17",
|
"date": "2026-04-24",
|
||||||
"message": "[v0.5.7](https://forgejo.ellis.link/continuwuation/continuwuity/releases/tag/v0.5.7) is out! Email verification! Terms and Conditions! Deleting notification pushers! So much good stuff. Go grab the release and read the changelog!"
|
"message": "[v0.5.8](https://forgejo.ellis.link/continuwuation/continuwuity/releases/tag/v0.5.8) is out! This is a patch release which fixes a bug in 0.5.7's email support -- upgrade soon if you use that feature."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,9 +19,7 @@ pub fn delimited<'a, T, I>(mut inputs: I) -> DigestOut
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx.finalize()
|
ctx.finalize().into()
|
||||||
.try_into()
|
|
||||||
.expect("failed to return Digest buffer")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sha256 hash (input gather)
|
/// Sha256 hash (input gather)
|
||||||
@@ -38,8 +36,7 @@ pub fn concat<'a, T, I>(inputs: I) -> DigestOut
|
|||||||
ctx
|
ctx
|
||||||
})
|
})
|
||||||
.finalize()
|
.finalize()
|
||||||
.try_into()
|
.into()
|
||||||
.expect("failed to return Digest buffer")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sha256 hash
|
/// Sha256 hash
|
||||||
@@ -50,7 +47,5 @@ pub fn hash<T>(input: T) -> DigestOut
|
|||||||
where
|
where
|
||||||
T: AsRef<[u8]>,
|
T: AsRef<[u8]>,
|
||||||
{
|
{
|
||||||
Sha256::digest(input)
|
Sha256::digest(input).into()
|
||||||
.try_into()
|
|
||||||
.expect("failed to return Digest buffer")
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user