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
Show 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:
...
@@ -437,6 +437,7 @@ jobs:
env
:
env
:
OLLAMA_SKIP_IMAGE_BUILD
:
'
1'
OLLAMA_SKIP_IMAGE_BUILD
:
'
1'
PUSH
:
'
1'
PUSH
:
'
1'
GH_TOKEN
:
${{ github.token }}
steps
:
steps
:
-
uses
:
actions/checkout@v4
-
uses
:
actions/checkout@v4
-
name
:
Set Version
-
name
:
Set Version
...
@@ -460,15 +461,20 @@ jobs:
...
@@ -460,15 +461,20 @@ jobs:
ls -lh dist/
ls -lh dist/
(cd dist; sha256sum * > sha256sum.txt)
(cd dist; sha256sum * > sha256sum.txt)
cat dist/sha256sum.txt
cat dist/sha256sum.txt
-
uses
:
ncipollo/release-action@v1
-
name
:
Create or update Release
with
:
run
:
|
name
:
${{ env.RELEASE_VERSION }}
echo "Looking for existing release for ${{ env.RELEASE_VERSION }}"
allowUpdates
:
true
OLD_TAG=$(gh release ls --json name,tagName | jq -r ".[] | select(.name == \"${{ env.RELEASE_VERSION }}\") | .tagName")
artifacts
:
'
dist/*'
if [ -n "$OLD_TAG" ]; then
draft
:
true
echo "Updating release ${{ env.RELEASE_VERSION }} to point to new tag ${GITHUB_REF_NAME}"
prerelease
:
true
gh release edit ${OLD_TAG} --tag ${GITHUB_REF_NAME}
omitBodyDuringUpdate
:
true
else
generateReleaseNotes
:
true
echo "Creating new release ${{ env.RELEASE_VERSION }} pointing to tag ${GITHUB_REF_NAME}"
omitDraftDuringUpdate
:
true
gh release create ${GITHUB_REF_NAME} \
omitPrereleaseDuringUpdate
:
true
--title ${{ env.RELEASE_VERSION }} \
replacesArtifacts
:
true
--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