chore: update issue templates and workflow files for Gitea compatibility
Build Validation / build (push) Successful in 39s
Build Validation / build (push) Successful in 39s
This commit is contained in:
@@ -1,15 +0,0 @@
|
|||||||
# These are supported funding model platforms
|
|
||||||
|
|
||||||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
|
||||||
patreon: # Replace with a single Patreon username
|
|
||||||
open_collective: # Replace with a single Open Collective username
|
|
||||||
ko_fi: FrauJulian
|
|
||||||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
|
||||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
||||||
liberapay: # Replace with a single Liberapay username
|
|
||||||
issuehunt: # Replace with a single IssueHunt username
|
|
||||||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
|
|
||||||
polar: # Replace with a single Polar username
|
|
||||||
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
|
|
||||||
thanks_dev: # Replace with a single thanks.dev username
|
|
||||||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
name: 🐛 Bug
|
name: 🐛 Bug
|
||||||
description: Report a bug or unexpected behavior
|
about: Report a bug or unexpected behavior
|
||||||
title: '🐛 [BUG]: '
|
title: '🐛 [BUG]: '
|
||||||
body:
|
body:
|
||||||
- type: textarea
|
- type: textarea
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
name: 💡 Enhancement
|
name: 💡 Enhancement
|
||||||
description: Suggest a new feature
|
about: Suggest a new feature
|
||||||
title: '💡 [Enhancement]: '
|
title: '💡 [Enhancement]: '
|
||||||
body:
|
body:
|
||||||
- type: textarea
|
- type: textarea
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
name: ⚙️ Improvement
|
name: ⚙️ Improvement
|
||||||
description: Suggest an improvement to existing functionality
|
about: Suggest an improvement to existing functionality
|
||||||
title: '⚙️ [Improvement]: '
|
title: '⚙️ [Improvement]: '
|
||||||
body:
|
body:
|
||||||
- type: textarea
|
- type: textarea
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
name: 📝 Service Request
|
name: 📝 Service Request
|
||||||
description: Request a service or support task
|
about: Request a service or support task
|
||||||
title: '📝 [Service Request]: '
|
title: '📝 [Service Request]: '
|
||||||
body:
|
body:
|
||||||
- type: textarea
|
- type: textarea
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
name: 👮 Story
|
name: 👮 Story
|
||||||
description: Describe a user story
|
about: Describe a user story
|
||||||
title: '👮 [Story]: '
|
title: '👮 [Story]: '
|
||||||
body:
|
body:
|
||||||
- type: textarea
|
- type: textarea
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
# To get started with Dependabot version updates, you'll need to specify which
|
|
||||||
# package ecosystems to update and where the package manifests are located.
|
|
||||||
# Please see the documentation for all configuration options:
|
|
||||||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
||||||
|
|
||||||
version: 2
|
|
||||||
updates:
|
|
||||||
- package-ecosystem: 'npm' # See documentation for possible values
|
|
||||||
directory: '/' # Location of package manifests
|
|
||||||
schedule:
|
|
||||||
interval: 'daily'
|
|
||||||
@@ -3,9 +3,6 @@ name: Release and Deploy Build
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
VERSION_MAJOR: '1'
|
VERSION_MAJOR: '1'
|
||||||
VERSION_MINOR: '1'
|
VERSION_MINOR: '1'
|
||||||
@@ -16,17 +13,16 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
uses: https://gitea.com/actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
fetch-tags: true
|
fetch-tags: true
|
||||||
|
|
||||||
- name: Use NodeJS v22.22.3
|
- name: Use NodeJS v22.22.3
|
||||||
uses: actions/setup-node@v6
|
uses: https://gitea.com/actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '22.22.3'
|
node-version: '22.22.3'
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
package-manager-cache: false
|
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
@@ -39,7 +35,7 @@ jobs:
|
|||||||
id: release_version
|
id: release_version
|
||||||
run: |
|
run: |
|
||||||
package_version="$(node -p "require('./package.json').version")"
|
package_version="$(node -p "require('./package.json').version")"
|
||||||
echo "tag=${package_version}" >> "$GITHUB_OUTPUT"
|
echo "tag=${package_version}" >> "$GITEA_OUTPUT"
|
||||||
|
|
||||||
- name: Run Build
|
- name: Run Build
|
||||||
run: npm run build
|
run: npm run build
|
||||||
@@ -49,24 +45,23 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
- name: Create GitHub release
|
- name: Create Gitea Release
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||||
|
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
||||||
|
GITEA_SHA: ${{ gitea.sha }}
|
||||||
RELEASE_TAG: v${{ steps.release_version.outputs.tag }}
|
RELEASE_TAG: v${{ steps.release_version.outputs.tag }}
|
||||||
run: |
|
run: |
|
||||||
git fetch --force --tags
|
git fetch --force --tags
|
||||||
|
|
||||||
previous_tag="$(gh api repos/${{ github.repository }}/releases --paginate --jq '.[] | select(.draft == false) | .tag_name' | grep -Fxv "$RELEASE_TAG" | head -n 1 || true)"
|
previous_tag="$(git describe --tags --abbrev=0 "$GITEA_SHA^" 2>/dev/null || true)"
|
||||||
|
|
||||||
if [ -n "$previous_tag" ]; then
|
if [ -n "$previous_tag" ]; then
|
||||||
if git rev-parse --verify --quiet "${previous_tag}^{commit}" >/dev/null; then
|
commit_messages="$(git log --reverse --format='- %s' "${previous_tag}..${GITEA_SHA}")"
|
||||||
commit_messages="$(git log --reverse --format='- %s' "${previous_tag}..${GITHUB_SHA}")"
|
full_changelog="${GITEA_SERVER_URL}/${GITEA_REPOSITORY}/compare/${previous_tag}...${RELEASE_TAG}"
|
||||||
else
|
|
||||||
commit_messages="$(git log --reverse --format='- %s' "${GITHUB_SHA}")"
|
|
||||||
fi
|
|
||||||
full_changelog="https://github.com/${{ github.repository }}/compare/${previous_tag}...${RELEASE_TAG}"
|
|
||||||
else
|
else
|
||||||
commit_messages="$(git log --reverse --format='- %s' "${GITHUB_SHA}")"
|
commit_messages="$(git log --reverse --format='- %s' "${GITEA_SHA}")"
|
||||||
full_changelog=""
|
full_changelog=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -84,8 +79,14 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
} > release-notes.md
|
} > release-notes.md
|
||||||
|
|
||||||
if gh release view "$RELEASE_TAG" >/dev/null 2>&1; then
|
node -e 'const fs = require("node:fs"); fs.writeFileSync("release.json", JSON.stringify({ tag_name: process.env.RELEASE_TAG, target_commitish: process.env.GITEA_SHA, name: process.env.RELEASE_TAG, body: fs.readFileSync("release-notes.md", "utf8") }))'
|
||||||
gh release edit "$RELEASE_TAG" --title "$RELEASE_TAG" --notes-file release-notes.md
|
|
||||||
|
api_url="${GITEA_SERVER_URL}/api/v1/repos/${GITEA_REPOSITORY}/releases"
|
||||||
|
auth_header="Authorization: token ${GITEA_TOKEN}"
|
||||||
|
|
||||||
|
if curl --fail --silent --header "$auth_header" --output current-release.json "${api_url}/tags/${RELEASE_TAG}"; then
|
||||||
|
release_id="$(node -p 'require("./current-release.json").id')"
|
||||||
|
curl --fail-with-body --header "$auth_header" --header 'Content-Type: application/json' --request PATCH --data-binary @release.json "${api_url}/${release_id}"
|
||||||
else
|
else
|
||||||
gh release create "$RELEASE_TAG" --target "${GITHUB_SHA}" --title "$RELEASE_TAG" --notes-file release-notes.md
|
curl --fail-with-body --header "$auth_header" --header 'Content-Type: application/json' --request POST --data-binary @release.json "$api_url"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -13,10 +13,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
uses: https://gitea.com/actions/checkout@v4
|
||||||
|
|
||||||
- name: use NodeJS v22.22.3
|
- name: use NodeJS v22.22.3
|
||||||
uses: actions/setup-node@v4
|
uses: https://gitea.com/actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '22.22.3'
|
node-version: '22.22.3'
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ reused.
|
|||||||
|
|
||||||
## Support
|
## Support
|
||||||
|
|
||||||
Create an [issue](https://github.com/FrauJulian/Discord-Audio-Stream/issues) on GitHub or contact
|
Create an [issue](https://git.lechner-systems.at/fraujulian/Discord-Audio-Stream/issues) on GitHub or contact
|
||||||
[`fraujulian`](https://discord.com/users/860206216893693973) on Discord.
|
[`fraujulian`](https://discord.com/users/860206216893693973) on Discord.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
@@ -204,4 +204,4 @@ npm run build
|
|||||||
|
|
||||||
## Enjoy the package?
|
## Enjoy the package?
|
||||||
|
|
||||||
Give it a star on [GitHub](https://github.com/FrauJulian/discord-audio-stream)!
|
Give it a star on [Gitea](https://git.lechner-systems.at/fraujulian/Discord-Audio-Stream)!
|
||||||
|
|||||||
+2
-2
@@ -43,9 +43,9 @@
|
|||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/FrauJulian/Discord-Audio-Stream.git"
|
"url": "https://git.lechner-systems.at/fraujulian/Discord-Audio-Stream.git"
|
||||||
},
|
},
|
||||||
"bugs": "https://github.com/FrauJulian/Discord-Audio-Stream/issues",
|
"bugs": "https://git.lechner-systems.at/fraujulian/Discord-Audio-Stream/issues",
|
||||||
"funding": "https://ko-fi.com/FrauJulian",
|
"funding": "https://ko-fi.com/FrauJulian",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"discord",
|
"discord",
|
||||||
|
|||||||
Reference in New Issue
Block a user