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
|
||||
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
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
tag_name: ${{ steps.get_tag_name.outputs.VERSION }}
|
||||
release_name: Release ${{ steps.get_tag_name.outputs.VERSION }}
|
||||
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
|
||||
files: |
|
||||
invoiceninja.zip
|
Loading…
x
Reference in New Issue
Block a user