Skip to content

Commit

Permalink
Add deploy stage only on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
paveldat committed Sep 11, 2023
1 parent 8a67fa1 commit 5379c28
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/deploy-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,17 @@ jobs:
- name: Install dependencies
run: |
sudo apt install pycodestyle
- name: Analysing the code with pycodestyle
run: |
pycodestyle src/**/*.py
deploy:
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: built-artifacts
path: dist
- name: Analysing the code with pycodestyle
run: |
ls -la
pycodestyle src/**/*.py

0 comments on commit 5379c28

Please sign in to comment.