Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
22e64b6dec | ||
| 873a4c5237 | |||
|
|
ea0511ae49 | ||
|
|
e9235bb816 | ||
|
|
888cae3db2 | ||
|
|
78253e9314 | ||
|
|
77662b71d2 | ||
|
|
207f392e80 | ||
|
|
507a24eb3d | ||
| 4282359e54 | |||
| 6d46193f5d | |||
| b8c6ba1355 |
@@ -1,58 +1,57 @@
|
|||||||
---
|
name: release
|
||||||
name: gitea-release-action
|
|
||||||
description: "An action to support publishing release to Gitea."
|
on:
|
||||||
author: "Akkuman"
|
push:
|
||||||
inputs:
|
tags:
|
||||||
server_url:
|
- "*"
|
||||||
description: the base url of the gitea API
|
|
||||||
required: false
|
jobs:
|
||||||
default: ${{ github.server_url }}
|
release:
|
||||||
body:
|
runs-on: ubuntu-latest
|
||||||
description: "Note-worthy description of changes in release"
|
|
||||||
required: false
|
steps:
|
||||||
default: ${{ github.event.release.body != '' && github.event.release.body || null }}
|
- uses: actions/checkout@v4
|
||||||
body_path:
|
with:
|
||||||
description: "Path to load description of changes in this release"
|
fetch-depth: 0
|
||||||
required: false
|
|
||||||
name:
|
- name: Build Changelog
|
||||||
description: "Gives the release a custom name. Defaults to tag name"
|
id: changelog
|
||||||
required: false
|
uses: mikepenz/release-changelog-builder-action@v6
|
||||||
default: ${{ github.event.release.name != '' && github.event.release.name || github.ref_name }}
|
with:
|
||||||
tag_name:
|
mode: "COMMIT"
|
||||||
description: "Gives a tag name. Defaults to github.GITHUB_REF"
|
configurationJson: |
|
||||||
required: false
|
{
|
||||||
default: ${{ github.ref_name }}
|
"template": "#{{CHANGELOG}}",
|
||||||
draft:
|
"categories": [
|
||||||
description: "Creates a draft release. Defaults to false"
|
{
|
||||||
required: false
|
"title": "## Feature",
|
||||||
default: ${{ github.event.release.draft || false }}
|
"labels": ["feat", "feature"]
|
||||||
prerelease:
|
},
|
||||||
description: "Identify the release as a prerelease. Defaults to false"
|
{
|
||||||
required: false
|
"title": "## Fix",
|
||||||
default: ${{ github.event.release.prerelease || false }}
|
"labels": ["fix", "bug"]
|
||||||
files:
|
},
|
||||||
description: "Newline-delimited list of path globs for asset files to upload"
|
{
|
||||||
required: false
|
"title": "## Other",
|
||||||
repository:
|
"labels": []
|
||||||
description: "Repository to make releases against, in <owner>/<repo> format"
|
}
|
||||||
required: false
|
],
|
||||||
default: ${{ github.repository }}
|
"label_extractor": [
|
||||||
token:
|
{
|
||||||
description: "Gitea Token"
|
"pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\\([\\w\\-\\.]+\\))?(!)?: ([\\w ])+([\\s\\S]*)",
|
||||||
required: false
|
"on_property": "title",
|
||||||
default: ${{ github.token }}
|
"target": "$1"
|
||||||
target_commitish:
|
}
|
||||||
description: 'Commitish value that determines where the Git tag is created from. Can be any branch or commit SHA.'
|
]
|
||||||
required: false
|
}
|
||||||
md5sum:
|
env:
|
||||||
description: 'Publish `.md5` along with artifacts.'
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
required: false
|
|
||||||
sha256sum:
|
- name: Create Gitea Release
|
||||||
description: 'Publish `.sha256` along with artifacts.'
|
uses: akkuman/gitea-release-action@v1
|
||||||
required: false
|
with:
|
||||||
runs:
|
token: ${{ secrets.GITEA_TOKEN }}
|
||||||
using: "node16"
|
tag_name: ${{ gitea.ref_name }}
|
||||||
main: "dist/index.js"
|
name: ${{ gitea.ref_name }}
|
||||||
branding:
|
body: ${{ steps.changelog.outputs.changelog }}
|
||||||
color: "green"
|
|
||||||
icon: "package"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user