diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index f51e8d9..b7c3f29 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -2,7 +2,7 @@ name: Python CI on: push: branches: - - master + - main - develop pull_request: release: @@ -87,7 +87,7 @@ jobs: needs: - linting - test-app - if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' || (github.event_name == 'release' && github.event.action == 'released') + if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' || (github.event_name == 'release' && github.event.action == 'released') steps: - uses: actions/checkout@v4 - uses: docker/setup-qemu-action@v3 @@ -99,8 +99,8 @@ jobs: with: username: ${{ secrets.DOCKER_USER }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: Deploy Master - if: github.ref == 'refs/heads/master' + - name: Deploy Main + if: github.ref == 'refs/heads/main' uses: docker/build-push-action@v5 with: context: . @@ -143,11 +143,11 @@ jobs: autodeploy: runs-on: ubuntu-latest needs: [docker-deploy] - if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' + if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' steps: - uses: actions/checkout@v4 - name: Deploy Staging - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/main' run: bash scripts/autodeploy.sh env: AUTODEPLOY_URL: ${{ secrets.AUTODEPLOY_URL }}