-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 4605f65 into feature/106-content-block-issue__test-106
- Loading branch information
Showing
52 changed files
with
673 additions
and
124 deletions.
There are no files selected for viewing
File renamed without changes.
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
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,57 @@ | ||
name: Promote and release Salesforce package | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
packageID: | ||
description: 'ID (starts with 04t) of the package version to promote' | ||
required: true | ||
versionNumber: | ||
description: 'Package version to release (e.g., 1.0.1 or 1.1.0)' | ||
required: true | ||
|
||
jobs: | ||
promote-sf-package: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
#Install Salesforce CLI | ||
- name: 'Install Salesforce CLI' | ||
run: | | ||
npm install @salesforce/cli --location=global | ||
nodeInstallPath=$(npm config get prefix) | ||
echo "$nodeInstallPath/bin" >> $GITHUB_PATH | ||
sf --version | ||
# Checkout the source code | ||
- name: 'Checkout source code' | ||
uses: actions/checkout@v4 | ||
|
||
# Store secret for dev hub | ||
- name: 'Populate auth file with DEV_HUB_URL secret' | ||
shell: bash | ||
run: | | ||
echo ${{ secrets.DEV_HUB_AUTH}} > ./DEV_HUB_AUTH.txt | ||
secretFileSize=$(wc -c "./DEV_HUB_AUTH.txt" | awk '{print $1}') | ||
if [ $secretFileSize == 1 ]; then | ||
echo "Missing DEV_HUB_AUTH secret. Is this workflow running on a fork?"; | ||
exit 1; | ||
fi | ||
# Authenticate dev hub | ||
- name: 'Authenticate Dev Hub' | ||
run: sf org login sfdx-url -f ./DEV_HUB_AUTH.txt -a devhub -d | ||
|
||
# Remove auth file | ||
- name: 'Remove auth file' | ||
run: rm -f ./DEV_HUB_AUTH.txt | ||
|
||
# Promote Package version | ||
- name: Run SFDX Promote command | ||
run: sf package version promote --package ${{ github.event.inputs.packageID }} -n | ||
|
||
# Create release notes | ||
- name: Create release | ||
run: gh release create ${{ github.event.inputs.versionNumber }} --generate-notes | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.CUMULUSCI_SERVICE_GITHUB }} |
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
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
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
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
2 changes: 1 addition & 1 deletion
2
force-app/main/default/classes/GGW_ApplicationCtrl.cls-meta.xml
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>58.0</apiVersion> | ||
<apiVersion>60.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
Oops, something went wrong.