main.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # This is a basic workflow to help you get started with Actions
  2. name: CI
  3. # Controls when the action will run.
  4. on:
  5. # Triggers the workflow on push or pull request events but only for the master branch
  6. push:
  7. branches: [ master ]
  8. pull_request:
  9. branches: [ master ]
  10. # Allows you to run this workflow manually from the Actions tab
  11. workflow_dispatch:
  12. # A workflow run is made up of one or more jobs that can run sequentially or in parallel
  13. jobs:
  14. # This workflow contains a single job called "build"
  15. build:
  16. # The type of runner that the job will run on
  17. runs-on: ubuntu-latest
  18. # Steps represent a sequence of tasks that will be executed as part of the job
  19. steps:
  20. # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  21. - uses: actions/checkout@v2
  22. # Runs a set of commands using the runners shell
  23. - name: Run shell to build docker image and build release.zip
  24. run: |
  25. set -e
  26. echo start build
  27. export DOCKER_USERNAME="${{ secrets.DOCKER_USERNAME }}"
  28. export DOCKER_PASSWORD="${{ secrets.DOCKER_PASSWORD }}"
  29. export GIT_SSH_SECRET="${{ secrets.GIT_SSH_SECRET }}"
  30. cd ./Publish/DevOps/filezip
  31. bash 20.docker-build.sh
  32. bash 30.release-build.sh
  33. echo build succeed!