From GitHub Actions
Mapping a self-run GitHub Actions pipeline — image-based build, deploy, and publish jobs — onto codev, one workflow at a time.
What your pipeline looks like today
# .github/workflows/build-deploy-publish.yml (self-run)
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: ${{ vars.SFP_IMAGE }} # you pin and upgrade this
credentials: { username: ..., password: ${{ secrets.REGISTRY_TOKEN }} }
steps:
- uses: actions/checkout@v5
- name: Authenticate Dev Hub
run: sf org login sfdx-url -f ./authfile -a devhub -d
- name: Create packages
run: sfp build -v devhub --diffcheck --buildnumber ${GITHUB_RUN_ID} --branch ${GITHUB_REF#refs/heads/}
- uses: actions/upload-artifact@v6
with: { name: artifacts, path: artifacts }
deploy:
needs: build
container: { image: '${{ vars.SFP_IMAGE }}' }
steps:
- name: Authenticate Salesforce
run: sf org login jwt --client-id ... --jwt-key-file server.key --username ...
- name: Deploy
run: sfp install -o sit --skipifalreadyinstalled
Publish:
needs: build
container: { image: '${{ vars.SFP_IMAGE }}' }
steps:
- name: Publish artifacts
run: sfp publish -d artifacts --npm --scope my-org --gittag --pushgittagWhat codev runs instead
Your workflow today
On codev

build job: each merge's impacted domains are built by the server and listed here. Builds your own pipeline still produces appear on the same page, so you can compare during the move.Move one workflow at a time
Last updated
Was this helpful?