mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
maybe this
This commit is contained in:
parent
0adb8cea91
commit
b5cd713e16
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
@ -153,6 +153,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: release
|
name: release
|
||||||
path: paperless-ng.tar.xz
|
path: paperless-ng.tar.xz
|
||||||
|
-
|
||||||
|
id: get_branch_name
|
||||||
|
run: |
|
||||||
|
branch_name=$(echo ${{ GITHUB_REF }} | cut -d/ -f3)
|
||||||
|
echo "::set-output name=branch_name::$branch_name"
|
||||||
-
|
-
|
||||||
name: Create Release
|
name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
@ -160,8 +165,8 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: $GITHUB_REF#refs/heads/
|
tag_name: ${{ steps.get_branch_name.outputs.branch_name }}
|
||||||
release_name: Paperless-ng $GITHUB_REF#refs/heads/
|
release_name: Paperless-ng ${{ steps.get_branch_name.outputs.branch_name }}
|
||||||
draft: true
|
draft: true
|
||||||
prerelease: true
|
prerelease: true
|
||||||
-
|
-
|
||||||
@ -173,7 +178,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||||
asset_path: ./paperless-ng.tar.xz
|
asset_path: ./paperless-ng.tar.xz
|
||||||
asset_name: paperless-ng-$GITHUB_REF#refs/heads/.tar.xz
|
asset_name: paperless-ng-${{ steps.get_branch_name.outputs.branch_name }}.tar.xz
|
||||||
asset_content_type: application/x-xz
|
asset_content_type: application/x-xz
|
||||||
|
|
||||||
# build and push image to docker hub.
|
# build and push image to docker hub.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user