Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
c9e6f054
Unverified
Commit
c9e6f054
authored
Jun 17, 2024
by
Daniel Hiltgen
Committed by
GitHub
Jun 17, 2024
Browse files
Merge pull request #5069 from dhiltgen/ci_release
Implement custom github release action
parents
152fc202
a12283e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
+18
-12
.github/workflows/release.yaml
.github/workflows/release.yaml
+18
-12
No files found.
.github/workflows/release.yaml
View file @
c9e6f054
...
...
@@ -437,6 +437,7 @@ jobs:
env
:
OLLAMA_SKIP_IMAGE_BUILD
:
'
1'
PUSH
:
'
1'
GH_TOKEN
:
${{ github.token }}
steps
:
-
uses
:
actions/checkout@v4
-
name
:
Set Version
...
...
@@ -460,15 +461,20 @@ jobs:
ls -lh dist/
(cd dist; sha256sum * > sha256sum.txt)
cat dist/sha256sum.txt
-
uses
:
ncipollo/release-action@v1
with
:
name
:
${{ env.RELEASE_VERSION }}
allowUpdates
:
true
artifacts
:
'
dist/*'
draft
:
true
prerelease
:
true
omitBodyDuringUpdate
:
true
generateReleaseNotes
:
true
omitDraftDuringUpdate
:
true
omitPrereleaseDuringUpdate
:
true
replacesArtifacts
:
true
-
name
:
Create or update Release
run
:
|
echo "Looking for existing release for ${{ env.RELEASE_VERSION }}"
OLD_TAG=$(gh release ls --json name,tagName | jq -r ".[] | select(.name == \"${{ env.RELEASE_VERSION }}\") | .tagName")
if [ -n "$OLD_TAG" ]; then
echo "Updating release ${{ env.RELEASE_VERSION }} to point to new tag ${GITHUB_REF_NAME}"
gh release edit ${OLD_TAG} --tag ${GITHUB_REF_NAME}
else
echo "Creating new release ${{ env.RELEASE_VERSION }} pointing to tag ${GITHUB_REF_NAME}"
gh release create ${GITHUB_REF_NAME} \
--title ${{ env.RELEASE_VERSION }} \
--draft \
--generate-notes \
--prerelease
fi
echo "Uploading artifacts for tag ${GITHUB_REF_NAME}"
gh release upload ${GITHUB_REF_NAME} dist/* --clobber
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment