Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
2d8b60e0
Unverified
Commit
2d8b60e0
authored
3 years ago
by
Richard van der Hoff
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Github Actions workflow to attach release artifacts to release (#10379)
parent
ae81ec42
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/release-artifacts.yml
+27
-1
27 additions, 1 deletion
.github/workflows/release-artifacts.yml
changelog.d/10379.misc
+1
-0
1 addition, 0 deletions
changelog.d/10379.misc
with
28 additions
and
1 deletion
.github/workflows/release-artifacts.yml
+
27
−
1
View file @
2d8b60e0
...
...
@@ -13,7 +13,7 @@ on:
tags
:
[
"
v*"
]
permissions
:
contents
:
read
contents
:
write
jobs
:
# first get the list of distros to build for.
...
...
@@ -62,3 +62,29 @@ jobs:
with
:
name
:
python-dist
path
:
dist/*
# if it's a tag, create a release and attach the artifacts to it
attach-assets
:
name
:
"
Attach
assets
to
release"
if
:
startsWith(github.ref, 'refs/tags/')
needs
:
-
build-debs
-
build-sdist
runs-on
:
ubuntu-latest
steps
:
-
name
:
Download all workflow run artifacts
uses
:
actions/download-artifact@v2
-
name
:
Build a tarball for the debs
run
:
tar -cvJf debs.tar.xz debs
-
name
:
Attach to release
uses
:
softprops/action-gh-release@a929a66f232c1b11af63782948aa2210f981808a
# PR#109
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
with
:
files
:
|
python-dist/*
debs.tar.xz
# if it's not already published, keep the release as a draft.
draft
:
true
# mark it as a prerelease if the tag contains 'rc'.
prerelease
:
${{ contains(github.ref, 'rc') }}
This diff is collapsed.
Click to expand it.
changelog.d/10379.misc
0 → 100644
+
1
−
0
View file @
2d8b60e0
Add Github Actions workflow to attach release artifacts to release.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment