How to Deploy Apex Code With GitHub Actions in 16 Mins

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ส.ค. 2024
  • Get in Touch: www.1sync.co/contact
    -----------------------------------
    In this video, we discuss how to use GitHub Actions to deploy Salesforce Apex code. Salesforce DevOps tutorials often talk about DevOps Center, and deploying change sets, but these tools are not enough. Learn how you can go from zero Salesforce DevOps knowledge to using the Salesforce Metadata API to download Salesforce Apex Code. We cover why traditional DevOps tools fail, and best DevOps strategies. Additionally, learn how you can leverage VS Code and SFDX to manage Salesforce Development. We also discuss how you can go from zero git knowledge to creating repositories in GitHub and committing changes. We discuss how to modify the package.xml in Salesforce, and how to use tools to generate a package.xml. Furthermore, we go over sample GitHub Actions to deploy code in Salesforce. We first use an example GitHub Action to run test classes on commit. Also provided is a method on how to deploy apex code with GitHub Actions.
    -----------------------------------
    Links:
    GitHub Action Write Up:
    www.1sync.co/deploy-salesforc...
    GitHub SSH Authentication: docs.github.com/en/authentica...
    Salesforce Metadata Api: developer.salesforce.com/docs...
    package.xml generator: packagebuilder.herokuapp.com/
    Chapters:
    0:00 Intro
    1:25 Why Traditional Tools Fail
    2:13 Unique Salesforce Challenges
    2:41 How to Download Salesforce Code
    4:50 Create Git Repository
    5:54 How Package.xml works
    8:18 Generate Package.xml
    9:37 Sample GitHub Action - Run Test Classes
    13:12 Sample GitHub Action - Manually Deploy Code
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 6

  • @JustinWills
    @JustinWills  ปีที่แล้ว +1

    How are you using GitHub Actions?

    • @grazimi
      @grazimi ปีที่แล้ว +1

      running tests

  • @santanuroy571
    @santanuroy571 11 หลายเดือนก่อน

    How can i generate these yml files ? How can i know all the details of these yml files? Please clarify...

    • @JustinWills
      @JustinWills  11 หลายเดือนก่อน +1

      You create these files in the .github/workflows directory. All the contents of the files are shown on screen. You can also see this video in article form here: medium.com/@justin.wills_27437/deploy-salesforce-code-with-github-actions-salesforce-devops-tutorial-302c7567372e

  • @santanuroy571
    @santanuroy571 11 หลายเดือนก่อน

    Diff between github and github github action? please.

    • @JustinWills
      @JustinWills  11 หลายเดือนก่อน

      GitHub is the platform that hosts the code. GitHub Actions is a tool on the GitHub platform that can be used to automate actions inside the GitHub repository.