mirror of
https://gitea.com/actions/gitea-release-action.git
synced 2025-08-10 21:55:52 +01:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3494e663be | ||
![]() |
e458649bef | ||
![]() |
ce62ea769e | ||
![]() |
5951579e82 |
8
.github/workflows/publish.yml
vendored
8
.github/workflows/publish.yml
vendored
@@ -1,5 +1,8 @@
|
||||
name: Build and Publish
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
@@ -12,6 +15,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: 'main'
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 16
|
||||
@@ -28,4 +33,5 @@ jobs:
|
||||
- id: get_version
|
||||
uses: battila7/get-version-action@v2
|
||||
- run: git tag -f "v${{ steps.get_version.outputs.major }}"
|
||||
- run: git push -f --follow-tags
|
||||
- run: git push
|
||||
- run: git push --tags -f
|
||||
|
10
dist/index.js
vendored
10
dist/index.js
vendored
@@ -40898,7 +40898,7 @@ async function run() {
|
||||
try {
|
||||
const server_url = core.getInput("server_url")
|
||||
const name = core.getInput("name")
|
||||
const body = core.getInput("body")
|
||||
const body = getReleaseBody(core.getInput("body"), core.getInput("body_path"))
|
||||
const tag_name = core.getInput("tag_name")
|
||||
const draft = Boolean(core.getInput("draft"))
|
||||
const prerelease = Boolean(core.getInput("prerelease"))
|
||||
@@ -41015,7 +41015,13 @@ async function uploadFiles(client, owner, repo, release_id, all_files) {
|
||||
}
|
||||
}
|
||||
|
||||
run();
|
||||
function getReleaseBody(body, body_path) {
|
||||
return (
|
||||
(body_path && external_fs_.readFileSync(body_path).toString("utf8")) || body
|
||||
)
|
||||
}
|
||||
|
||||
run()
|
||||
|
||||
})();
|
||||
|
||||
|
Reference in New Issue
Block a user