Merge pull request #6 from fabioschiozer/develop #2
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
name: Release - create release and artifact - on push tag | ||
on: | ||
push: | ||
tags: | ||
- v*.*.* | ||
# Jobs to be executed | ||
jobs: | ||
build-deploy-artifact: | ||
<<<<<<< HEAD | ||
runs-on: ubuntu-latest | ||
======= | ||
runs-on: Professiona-Services-LATAM-Ubuntu | ||
>>>>>>> b7d8470 (Initialize develop) | ||
container: tnascimento013/latam_salesforcedx_industries_orgdevmodebuilds:latest | ||
environment: relbuild | ||
steps: | ||
- name: Installing missing CLIs / Plugins | ||
run: echo "y" | sf plugins install sf-orgdevmode-builds | ||
- name: Checkout source code | ||
<<<<<<< HEAD | ||
uses: actions/checkout@v3 | ||
======= | ||
uses: Professiona-Services-LATAM/checkout@v3 | ||
>>>>>>> b7d8470 (Initialize develop) | ||
- name: Extracting private key | ||
run: 'echo "${{ secrets.JWT_KEY_NONPROD }}" > server.key' | ||
- name: Running the build & deploy | ||
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 | ||
- name: Setting git safe.directory | ||
run: git config --global --add safe.directory '*' | ||
- name: Archiving Repository | ||
run: git archive -o ${{ github.event.repository.name }}-${{ github.ref_name }}.zip HEAD | ||
- name: Upload Assets | ||
<<<<<<< HEAD | ||
uses: actions/[email protected] | ||
======= | ||
uses: Professiona-Services-LATAM/[email protected] | ||
>>>>>>> b7d8470 (Initialize develop) | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }} | ||
with: | ||
files: ${{ github.event.repository.name }}-${{ github.ref_name }}.zip |