Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed problems with Release Workflow Automation #1993

Merged
merged 3 commits into from
Jan 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/PostReleaseScripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,13 @@ jobs:

attachArtifactsToRelease:
runs-on: ubuntu-latest
# these jobs have to finish so that the existing-terms-and-definitions and build-files exist
needs: [exportTermsDefinitions, buildOntologyFullAndClosure]
steps:
- uses: actions/download-artifact@v4
with:
name: build-files
path: build/oeo
path: build
- name: Zip build files again for usage as release artifact
run: |
cd build
Expand All @@ -128,5 +130,15 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.event.release.tag_name }}
# allowing the action to update the release as it is already created
allowUpdates: true
# omitting the release name, body, draft state and prerelease state so they won't be updated by attaching the artifacts
omitNameDuringUpdate: true
omitBodyDuringUpdate: true
omitDraftDuringUpdate: true
omitPrereleaseDuringUpdate: true
# The default behaviour of this action is to determine the release by the version number.
# We don't want this behaviour, as releases created as draft or pre-release won't be updated in that regard and therefore result in
# unconsistent behaviour when creating normal releases vs. draft or pre-releases.
makeLatest: false
artifacts: "${{ github.workspace }}/build-files.zip,${{ github.workspace }}/existing-terms-and-definitions.zip"
Loading