build: working on Gitea release process

This commit is contained in:
D. Moonfire 2022-10-12 20:47:28 -05:00
parent b374f1948f
commit ea537d7e92
4 changed files with 475 additions and 415 deletions

881
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -36,14 +36,12 @@
"devDependencies": {
"@commitlint/cli": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
"@saithodev/semantic-release-gitea": "^2.1.0",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/gitlab": "^7.0.4",
"@semantic-release/npm": "^8.0.3",
"@semantic-release/release-notes-generator": "^10.0.3",
"commitizen": "^2.10.1",
"cz-conventional-changelog": "^2.1.0",
"husky": "^7.0.2",
"markdowny": "^0.2.1",
"npm-run-all": "^4.1.5",

View file

@ -25,8 +25,9 @@ module.exports = {
"@semantic-release/git",
[
"@semantic-release/gitlab",
"@semantic-release/gitea",
{
giteaUrl: "https://src.mfgames.com",
assets: [
{ path: "*.epub", label: "EPUB2", type: "other" },
{ path: "*.pdf", label: "PDF", type: "other" },

View file

@ -20,7 +20,7 @@ rm -f dmoonfire*
# Perform the release process.
log "performing semantic release"
export GIT_CREDENTIALS="dmoonfire:$GITEA_TOKEN"
npx semantic-release
npx semantic-release || exit 1
# Create a tarball of the output files and upload them to S3.
if ls dmoonfire* &> /dev/null