diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 1d4d05d..e0ed3c2 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -1,37 +1,33 @@ -# This workflow will install Python dependencies, run tests and lint with a single version of Python -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python - -name: Deploy - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -permissions: - contents: read - -jobs: - deploy: - - runs-on: self-hosted - - steps: - - uses: actions/checkout@v4 - - name: LS command - run: ls - - name: PWD command - run: pwd - - name: cp command - run: cp * /home/alex/VDI-API-INSA - - restart: - runs-on: self-hosted - - steps: - - name: api-service restart - run: sudo systemctl restart api-vdi - - name: api-service status - run: sudo systemctl status api-vdi - +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Deploy + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + deploy: + + runs-on: self-hosted + + steps: + - uses: actions/checkout@v4 + - name: LS command + run: ls + - name: PWD command + run: pwd + - name: cp command + run: cp * /home/alex/VDI-API-INSA + - name: api-service restart + run: sudo systemctl restart api-vdi + - name: api-service status + run: sudo systemctl status api-vdi + +