Skip to content

Commit

Permalink
upload-release-asset action does not support wildcards, so rename ext…
Browse files Browse the repository at this point in the history
…ension

Summary: As per title

Reviewed By: alanz

Differential Revision: D48872853

fbshipit-source-id: ced6e13798b42c1b4a84328bfeb223bfa8b365d9
  • Loading branch information
robertoaloi authored and facebook-github-bot committed Sep 1, 2023
1 parent f179a1f commit 8d3e82f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,16 @@ jobs:
- name: Package Extension
working-directory: editors/code
run: vsce package
- name: Rename Package
run: mv editors/code/erlang-language-platform-*.vsix erlang-language-platform.vsix
- env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
name: Upload Extension Package
uses: "actions/[email protected]"
with:
asset_content_type: application/octet-stream
asset_name: elp-linux-otp-25.vsix
asset_path: editors/code/erlang-language-platform-*.vsix
asset_path: editors/code/erlang-language-platform.vsix
upload_url: "${{ steps.get_release_url.outputs.upload_url }}"
- name: Publish extension to marketplace
working-directory: editors/code
Expand Down Expand Up @@ -180,14 +182,16 @@ jobs:
- name: Package Extension
working-directory: editors/code
run: vsce package
- name: Rename Package
run: mv editors/code/erlang-language-platform-*.vsix erlang-language-platform.vsix
- env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
name: Upload Extension Package
uses: "actions/[email protected]"
with:
asset_content_type: application/octet-stream
asset_name: elp-linux-otp-23.vsix
asset_path: editors/code/erlang-language-platform-*.vsix
asset_path: editors/code/erlang-language-platform.vsix
upload_url: "${{ steps.get_release_url.outputs.upload_url }}"
macos-release-otp-25:
needs:
Expand Down Expand Up @@ -256,14 +260,16 @@ jobs:
- name: Package Extension
working-directory: editors/code
run: vsce package
- name: Rename Package
run: mv editors/code/erlang-language-platform-*.vsix erlang-language-platform.vsix
- env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
name: Upload Extension Package
uses: "actions/[email protected]"
with:
asset_content_type: application/octet-stream
asset_name: elp-macos-otp-25.vsix
asset_path: editors/code/erlang-language-platform-*.vsix
asset_path: editors/code/erlang-language-platform.vsix
upload_url: "${{ steps.get_release_url.outputs.upload_url }}"
macos-release-otp-23:
needs:
Expand Down Expand Up @@ -332,14 +338,16 @@ jobs:
- name: Package Extension
working-directory: editors/code
run: vsce package
- name: Rename Package
run: mv editors/code/erlang-language-platform-*.vsix erlang-language-platform.vsix
- env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
name: Upload Extension Package
uses: "actions/[email protected]"
with:
asset_content_type: application/octet-stream
asset_name: elp-macos-otp-23.vsix
asset_path: editors/code/erlang-language-platform-*.vsix
asset_path: erlang-language-platform.vsix
upload_url: "${{ steps.get_release_url.outputs.upload_url }}"
name: erlang-language-platform release
on:
Expand Down

0 comments on commit 8d3e82f

Please sign in to comment.