From ddbe342b285be6ca35bea36badfba52130e75ea7 Mon Sep 17 00:00:00 2001 From: Matthias Berner Date: Thu, 10 Oct 2024 20:02:17 +0200 Subject: [PATCH] upd --- .gitea/workflows/release.yaml | 71 +++++++++++++++++++++++++---------- 1 file changed, 52 insertions(+), 19 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 2df62e0..60e6da2 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -1,19 +1,52 @@ -on: - push: - tags: - - '*' - -jobs: - release: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: release - id: release - uses: actions/release-action@main - with: - files: |- - ** - api_key: '${{secrets.RELEASE_TOKEN}}' \ No newline at end of file +--- +name: gitea-release-action +description: "An action to support publishing release to Gitea." +author: "Akkuman" +inputs: + server_url: + description: the base url of the gitea API + required: false + default: ${{ github.server_url }} + body: + description: "Note-worthy description of changes in release" + required: false + name: + description: "Gives the release a custom name. Defaults to tag name" + required: false + default: ${{ github.ref_name }} + tag_name: + description: "Gives a tag name. Defaults to github.GITHUB_REF" + required: false + default: ${{ github.ref_name }} + draft: + description: "Creates a draft release. Defaults to false" + required: false + prerelease: + description: "Identify the release as a prerelease. Defaults to false" + required: false + files: + description: "Newline-delimited list of path globs for asset files to upload" + required: false + repository: + description: "Repository to make releases against, in / format" + required: false + default: ${{ github.repository }} + token: + description: "Gitea Token" + required: false + default: ${{ github.token }} + target_commitish: + description: 'Commitish value that determines where the Git tag is created from. Can be any branch or commit SHA.' + required: false + md5sum: + description: 'Publish `.md5` along with artifacts.' + required: false + sha256sum: + description: 'Publish `.sha256` along with artifacts.' + required: false +runs: + using: "node16" + main: "dist/index.js" +branding: + color: "green" + icon: "package" \ No newline at end of file