mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
fixes for release
This commit is contained in:
parent
37de9ac2dd
commit
bdb04afb02
26
.github/workflows/release.yml
vendored
26
.github/workflows/release.yml
vendored
@ -60,25 +60,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Get tag name
|
- name: Get tag name
|
||||||
id: get_tag_name
|
id: get_tag_name
|
||||||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}-release
|
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
||||||
|
|
||||||
- name: Create Release
|
- name: Release
|
||||||
id: create_release
|
uses: softprops/action-gh-release@v1
|
||||||
uses: actions/create-release@v1
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ steps.get_tag_name.outputs.VERSION }}
|
files: |
|
||||||
release_name: Release ${{ steps.get_tag_name.outputs.VERSION }}
|
invoiceninja.zip
|
||||||
draft: false
|
|
||||||
prerelease: false
|
|
||||||
- name: Upload Release Asset
|
|
||||||
id: upload-release-asset
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{secrets.RELEASE_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: ./invoiceninja.zip
|
|
||||||
asset_name: invoiceninja.zip
|
|
||||||
asset_content_type: application/zip
|
|
Loading…
x
Reference in New Issue
Block a user