-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into release/v55.11.2022083101
- Loading branch information
Showing
3 changed files
with
107 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: gitConfig | ||
description: "Sets git username/email and push behavior" | ||
|
||
inputs: | ||
email: | ||
description: 'Email to set for config' | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- run: git config --global push.default current | ||
shell: bash | ||
- run: git config --global user.email ${{ inputs.email }} | ||
shell: bash | ||
- run: git config user.name 'Release Bot' | ||
shell: bash |
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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: Publish Beta Release to Github Only | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
save_artifacts: | ||
name: 'Build VSIX Files' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: latest | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.ref }} | ||
- run: npm install -g lerna | ||
- run: npm install | ||
- run: npm run compile | ||
- run: npm run vscode:package | ||
- name: Stage Artifacts | ||
run: | | ||
mkdir extensions | ||
find packages -name "*.vsix" -type f -exec cp {} ./extensions \; | ||
cp ./packages/salesforcedx-vscode/CHANGELOG.md ./extensions | ||
- name: Upload Extensions | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: VS Code Extensions | ||
path: ./extensions/ | ||
|
||
get_release_variables: | ||
# store the RELEASE_VERSION from the parent package as an output that we can reference elsewhere | ||
name: 'Get Release Environment Variables' | ||
runs-on: ubuntu-latest | ||
outputs: | ||
RELEASE_VERSION: ${{ steps.getVersion.outputs.version }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- id: getVersion | ||
run: echo "::set-output name=version::"$(node -pe "require('./packages/salesforcedx-vscode/package.json').version")"" | ||
- run: echo "Release Version is ${{ steps.getVersion.outputs.version }}" | ||
|
||
create_git_tag: | ||
name: 'Create and Tag Beta Release' | ||
runs-on: ubuntu-latest | ||
needs: [save_artifacts, get_release_variables] | ||
env: | ||
VERSION: ${{ needs.get_release_variables.outputs.RELEASE_VERSION }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/download-artifact@v3 | ||
id: download | ||
with: | ||
name: VS Code Extensions | ||
path: tmp/saved-extensions | ||
- uses: ./.github/actions/gitConfig | ||
with: | ||
email: ${{ secrets.GH_EMAIL }} | ||
- name: 'Create git tag to map to the Release Version' | ||
run: | | ||
git tag v${{ env.VERSION }} | ||
git push origin v${{ env.VERSION }} | ||
- name: 'Confirm all downloaded files' | ||
run: ls -R | ||
working-directory: tmp/saved-extensions | ||
- 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 | ||
working-directory: tmp/saved-extensions | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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