mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
add a publish release step
This commit is contained in:
parent
296be9135a
commit
a9d6e7f402
34
.github/workflows/ci.yml
vendored
34
.github/workflows/ci.yml
vendored
@ -82,7 +82,7 @@ jobs:
|
|||||||
name: frontend-compiled
|
name: frontend-compiled
|
||||||
path: src/documents/static/frontend/
|
path: src/documents/static/frontend/
|
||||||
|
|
||||||
release:
|
build-release:
|
||||||
needs: [frontend, documentation, tests]
|
needs: [frontend, documentation, tests]
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
@ -143,6 +143,38 @@ jobs:
|
|||||||
name: release
|
name: release
|
||||||
path: dist/paperless-ng.tar.xz
|
path: dist/paperless-ng.tar.xz
|
||||||
|
|
||||||
|
publish-release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build-release
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Download Release Artifact
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: release
|
||||||
|
path: paperless-ng.tar.xz
|
||||||
|
-
|
||||||
|
name: Create Release
|
||||||
|
id: create_release
|
||||||
|
uses: actions/create-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
tag_name: ${{ github.ref }}
|
||||||
|
release_name: Paperless-ng ${{ github.ref }}
|
||||||
|
draft: true
|
||||||
|
prerelease: true
|
||||||
|
-
|
||||||
|
name: Upload Release Archive
|
||||||
|
id: upload-release-asset
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
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
|
||||||
|
asset_path: ./paperless-ng.tar.xz
|
||||||
|
asset_name: paperless-ng-${{ github.ref }}.tar.xz
|
||||||
|
asset_content_type: application/x-xz
|
||||||
|
|
||||||
# build and push image to docker hub.
|
# build and push image to docker hub.
|
||||||
build-docker-image:
|
build-docker-image:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user