build_push.yml 949 B

12345678910111213141516171819202122232425262728293031323334
  1. name: Build and Push
  2. on:
  3. push:
  4. branches: [ "master" ]
  5. pull_request:
  6. branches: [ "master" ]
  7. workflow_dispatch:
  8. jobs:
  9. # This workflow contains a single job called "build"
  10. build:
  11. # The type of runner that the job will run on
  12. runs-on: ubuntu-latest
  13. # Steps represent a sequence of tasks that will be executed as part of the job
  14. steps:
  15. # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  16. - uses: actions/checkout@v3
  17. # Runs a single command using the runners shell
  18. - name: Run a one-line script
  19. run: echo Hello, world!
  20. # Runs a set of commands using the runners shell
  21. - name: Run a multi-line script
  22. run: |
  23. echo Add other actions to build,
  24. echo test, and deploy your project.
  25. # Setup Test compile for Arduino
  26. - name: Test compile for Arduino
  27. uses: ArminJo/arduino-test-compile@v3.0.0