Skip to content

Commit 4a31e18

Browse files
committed
fixes to workflow
1 parent 4e4c898 commit 4a31e18

1 file changed

Lines changed: 6 additions & 17 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,13 @@ on:
1010

1111
jobs:
1212
test:
13-
if: github.ref != 'refs/heads/master'
13+
if: github.ref != 'refs/heads/main'
1414
runs-on: ubuntu-latest
1515
container:
1616
image: python:3.8-buster
1717
steps:
1818
- name: Checkout code
19-
uses: actions/checkout@v3
20-
21-
- name: Set up Python
22-
uses: actions/setup-python@v4
23-
with:
24-
python-version: 3.8
19+
uses: actions/checkout@v4
2520

2621
- name: Install dependencies
2722
run: pip install -r requirements.txt
@@ -30,25 +25,19 @@ jobs:
3025
run: mkdocs build --strict --verbose --site-dir test
3126

3227
- name: Upload test artifacts
33-
if: always()
34-
uses: actions/upload-artifact@v3
28+
uses: actions/upload-artifact@v4
3529
with:
3630
name: test
3731
path: test
3832

3933
deploy:
40-
if: github.ref == 'refs/heads/master'
34+
if: github.ref == 'refs/heads/main'
4135
runs-on: ubuntu-latest
4236
container:
4337
image: python:3.8-buster
4438
steps:
4539
- name: Checkout code
46-
uses: actions/checkout@v3
47-
48-
- name: Set up Python
49-
uses: actions/setup-python@v4
50-
with:
51-
python-version: 3.8
40+
uses: actions/checkout@v4
5241

5342
- name: Install dependencies
5443
run: pip install -r requirements.txt
@@ -57,7 +46,7 @@ jobs:
5746
run: mkdocs build --strict --verbose
5847

5948
- name: Upload deployment artifacts
60-
uses: actions/upload-artifact@v3
49+
uses: actions/upload-artifact@v4
6150
with:
6251
name: public
6352
path: public

0 commit comments

Comments
 (0)