diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6fd89b3c7..024c0f051 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -195,10 +195,10 @@ jobs: name: release path: ./ - - name: Get branch name - id: get_branch_name + name: Get version + id: get_version run: | - echo ::set-output name=branch_name::${GITHUB_REF#refs/tags/ng-} + echo ::set-output name=version::${GITHUB_REF#refs/tags/ng-} - name: Create release id: create_release @@ -206,12 +206,12 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ steps.get_branch_name.outputs.branch_name }} - release_name: Paperless-ng ${{ steps.get_branch_name.outputs.branch_name }} + tag_name: ${{ steps.get_version.outputs.version }} + release_name: Paperless-ng ${{ steps.get_version.outputs.version }} draft: false prerelease: true body: | - TODO: Insert changelog here (it's also in the documentation) + For a complete list of changes, see the changelog at https://paperless-ng.readthedocs.io/en/latest/changelog.html. - name: Upload release archive id: upload-release-asset @@ -221,7 +221,7 @@ jobs: 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-${{ steps.get_branch_name.outputs.branch_name }}.tar.xz + asset_name: paperless-ng-${{ steps.get_version.outputs.version }}.tar.xz asset_content_type: application/x-xz # build and push image to docker hub.