Skip to content

Merge pull request #6 from fabioschiozer/develop #2

Merge pull request #6 from fabioschiozer/develop

Merge pull request #6 from fabioschiozer/develop #2

Workflow file for this run

name: Release - deploy artifact
on:
workflow_dispatch:
inputs:
tag:
description: Tag from where the artifact is going to be downloaded and used as base for the deploy
type: string
required: true
environment:
description: Environment that is going to be used
type: string
required: true
# Jobs to be executed
jobs:
build-deploy:
<<<<<<< HEAD

Check failure on line 18 in .github/workflows/releaseDeploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/releaseDeploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 18
runs-on: ubuntu-latest
=======
runs-on: Professiona-Services-LATAM-Ubuntu
>>>>>>> b7d8470 (Initialize develop)
container: tnascimento013/latam_salesforcedx_industries_orgdevmodebuilds:latest
environment: ${{ inputs.environment }}
steps:
- name: Installing missing CLIs / Plugins
run: echo "y" | sf plugins install sf-orgdevmode-builds
- name: Download Artifact
<<<<<<< HEAD
uses: actions/[email protected]
=======
uses: Professiona-Services-LATAM/[email protected]
>>>>>>> b7d8470 (Initialize develop)
with:
token: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }}
version: tags/${{ inputs.tag }}
file: ${{ github.event.repository.name }}-${{ inputs.tag }}.zip
- name: Unzip artifact
run: unzip ${{ github.event.repository.name }}-${{ inputs.tag }}.zip -d outputdir/
- name: Extracting private key
working-directory: ./outputdir/
run: 'echo "${{ secrets.JWT_KEY_NONPROD }}" > server.key'
- name: Running the build & deploy
working-directory: ./outputdir/
run: sf builds deploy --buildfile manifest/buildfile.json --client-id ${{ vars.CLIENT_ID }} --instance-url ${{ vars.INSTANCE_URL }} --username ${{ vars.USERNAME }} --jwt-key-file server.key