Skip to content

Commit 289fe02

Browse files
authored
Merge pull request #7 from scrapy-plugins/feature/github-actions-publish
Fix indentation
2 parents 3c8dc85 + dc60376 commit 289fe02

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

.github/workflows/main.yml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- uses: pre-commit/[email protected]
1010

1111
test:
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-latest
1313
needs: lint
1414
strategy:
1515
matrix:
@@ -33,25 +33,26 @@ jobs:
3333
- name: Run tests
3434
run: tox -e ${{ matrix.tox || 'py' }}
3535

36-
publish:
37-
needs: test
38-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
39-
steps:
40-
- uses: actions/checkout@master
41-
- name: Set up Python 3.11
42-
uses: actions/setup-python@v3
43-
with:
44-
python-version: "3.11"
36+
publish:
37+
runs-on: ubuntu-latest
38+
needs: test
39+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
40+
steps:
41+
- uses: actions/checkout@master
42+
- name: Set up Python 3.11
43+
uses: actions/setup-python@v3
44+
with:
45+
python-version: "3.11"
4546

46-
- name: Install dependencies
47-
run: |
48-
python -m pip install --upgrade pip
49-
pip install setuptools wheel twine
47+
- name: Install dependencies
48+
run: |
49+
python -m pip install --upgrade pip
50+
pip install setuptools wheel twine
5051
51-
- name: Build and publish
52-
env:
53-
TWINE_USERNAME: __token__
54-
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
55-
run: |
56-
python setup.py sdist bdist_wheel
57-
twine upload dist/*
52+
- name: Build and publish
53+
env:
54+
TWINE_USERNAME: __token__
55+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
56+
run: |
57+
python setup.py sdist bdist_wheel
58+
twine upload dist/*

0 commit comments

Comments
 (0)