Skip to content

beta release

beta release #1

Workflow file for this run

name: beta release
on:
workflow_dispatch:
branches:
- "main"
paths-ignore:
- "docs/**"
- "README.md"
jobs:
unit_tests:
name: "Run Beta release"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install sfdx
run: |
mkdir sfdx
wget -qO- https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable/sfdx-linux-x64.tar.xz | tar xJ -C sfdx --strip-components 1
echo $(realpath sfdx/bin) >> $GITHUB_PATH
- name: Authenticate Dev Hub
run: |
echo ${{ secrets.SFDX_AUTH_URL }} > sfdx_auth
sfdx force:auth:sfdxurl:store -f sfdx_auth -d
# Create package version and extract its id
- name: "Create package version"
id: createPackageVersion
run: |
set +e
json=$(sfdx force:package:version:create -p "Grants Content Kit" --installationkeybypass --definitionfile config/project-scratch-def.json --wait 10 --targetdevhubusername ldodevhub --branch main -c --json)
echo $json
status=$(echo $json | jq '.status')
if [ $status == "0" ]; then
packageVersionId=$(echo $json | jq -r '.result.SubscriberPackageVersionId')
echo "::set-output name=packageVersionId::$packageVersionId"
else
echo "sfdx force:package:version:create failed"
fi
exit $status