-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: distribute completion files separately (#494)
- Loading branch information
1 parent
63f9ed6
commit 0c3f9da
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -384,3 +384,20 @@ jobs: | |
asset_path: bottom.rb | ||
asset_name: bottom.rb | ||
asset_content_type: application/octet-stream | ||
|
||
- name: Compress completion files (Linux x86-64 GNU) | ||
if: matrix.triple.target == 'x86_64-unknown-linux-gnu' && matrix.triple.container == '' | ||
shell: bash | ||
run: | | ||
tar -C ./completion -czvf completion.tar.gz . | ||
- name: Release completion files (Linux x86-64 GNU) | ||
if: matrix.triple.target == 'x86_64-unknown-linux-gnu' && matrix.triple.container == '' && github.event.inputs.isMock == '' | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ env.RELEASE_UPLOAD_URL }} | ||
asset_path: completion.tar.gz | ||
asset_name: completion.tar.gz | ||
asset_content_type: application/octet-stream |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -270,3 +270,20 @@ jobs: | |
asset_path: bottom_${{ env.RELEASE_VERSION }}_amd64.deb | ||
asset_name: bottom_${{ env.RELEASE_VERSION }}_amd64.deb | ||
asset_content_type: application/octet-stream | ||
|
||
- name: Compress completion files (Linux x86-64 GNU) | ||
if: matrix.triple.target == 'x86_64-unknown-linux-gnu' && matrix.triple.container == '' | ||
shell: bash | ||
run: | | ||
tar -C ./completion -czvf completion.tar.gz . | ||
- name: Release completion files (Linux x86-64 GNU) | ||
if: matrix.triple.target == 'x86_64-unknown-linux-gnu' && matrix.triple.container == '' && github.event.inputs.isMock == '' | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ env.RELEASE_UPLOAD_URL }} | ||
asset_path: completion.tar.gz | ||
asset_name: completion.tar.gz | ||
asset_content_type: application/octet-stream |