Files
Salesforce-CI-CD/.gitea/workflows/test.yaml
T
head 529deb7511
Deploy to production / deploy (push) Failing after 14s
fft 3
2026-08-05 22:48:19 +02:00

36 lines
957 B
YAML

name: Deploy to production
run-name: ${{ GITHUB.ACTOR }} pushing to main
on:
push:
branches:
- OrgDestination
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# checkout repository
- name: Checkout repository
uses: actions/checkout@v7
# install Salesforce CLI
- name: Install Salesforce CLI
run: npm install --global @salesforce/cli
# Create JWT key
- name: Create JWT key
run: |
mkdir -p .secrets
printf '%s' "${{ secrets.SF_JWT_KEY}}" > .secrets/server.key
chmod 600 .secrets/server.key
# Authenticate
- name: Authenticate
run: |
sf org login jwt \
--client-id "${{ secrets.SF_CLIENT_ID }}" \
--jwt-key-file "${{ secrets.SF_JWT_KEY }}" \
--username "${{ vars.SF_DESTINATION_USERNAME }}" \
--instance-url https://login.salesforce.com \
--alias OrgDestination