Skip to content

Commit

Permalink
Chore: zip vsix files & remove changelog for beta release (#5610)
Browse files Browse the repository at this point in the history
* chore: implement workflow to publish beta release

* chore: fix the typo for LWC e2e tests

* chore: apply reviewer's suggestion

* chore: refactor publish beta workflow

* Update .github/workflows/approveAndPublishBeta.yml

Co-authored-by: Cristina Cañizales <[email protected]>

* chore: zip vsix & delete changelog

---------

Co-authored-by: Cristina Cañizales <[email protected]>
  • Loading branch information
mingxuanzhangsfdx and CristiCanizales authored May 23, 2024
1 parent 578cbcc commit a6f3fe2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publishBeta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ jobs:
gh run download ${{ inputs.runId }} -D ./tmp-dir
env:
GITHUB_TOKEN: ${{ secrets.IDEE_GH_TOKEN }}
- run: cp ./packages/salesforcedx-vscode/CHANGELOG.md ${{ env.EXTENSION_PATH }}
- name: Install zip utility
run: sudo apt-get install zip -y
# - run: cp ./packages/salesforcedx-vscode/CHANGELOG.md ${{ env.EXTENSION_PATH }}
- uses: ./.github/actions/gitConfig
with:
email: ${{ secrets.IDEE_GH_EMAIL }}
Expand All @@ -61,8 +63,11 @@ jobs:
- name: 'Confirm all downloaded files'
run: ls -R
working-directory: ${{ env.EXTENSION_PATH }}
- name: Zip the vsix files
run: zip -r ${{ env.VERSION }}.zip ./
working-directory: ${{ env.EXTENSION_PATH }}
- name: 'Create Pre-Release and Attach VSIX Files'
run: gh release create v${{ env.VERSION }} **.vsix --title "Pre-Release v${{ env.VERSION }}" --notes-file CHANGELOG.md --prerelease
run: gh release create v${{ env.VERSION }} **.zip --title "Pre-Release v${{ env.VERSION }}" --prerelease
working-directory: ${{ env.EXTENSION_PATH }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a6f3fe2

Please sign in to comment.