Skip to content

Commit d649994

Browse files
committed
update contributors when pushed to main
1 parent 8b9b4e4 commit d649994

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,22 @@ jobs:
2020
- name: Install dependencies
2121
uses: bahmutov/npm-install@v1
2222

23+
- name: Set up Python
24+
uses: actions/setup-python@v2
25+
with:
26+
python-version: '3.x'
27+
28+
- name: Install Python dependencies
29+
run: pip install requests
30+
31+
- name: Update contributors
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.NURU_TOKEN }}
34+
run: python .github/scripts/update_contributors.py
35+
2336
- name: Build project
2437
run: npm run docs:build
25-
38+
2639
- name: Archive production files
2740
run: |
2841
zip -r production-files.zip .
@@ -56,7 +69,7 @@ jobs:
5669
port: ${{ secrets.PORT }}
5770
source: distfiles/*
5871
target: "${{ secrets.TEMP_DIR }}"
59-
72+
6073
- name: Going Live
6174
uses: appleboy/[email protected]
6275
with:
@@ -69,4 +82,4 @@ jobs:
6982
unzip distfiles/production-files.zip
7083
rm -rf distfiles
7184
rm -rf ${{ secrets.DEPLOY_DIR }}/*
72-
mv * ${{ secrets.DEPLOY_DIR }}
85+
mv * ${{ secrets.DEPLOY_DIR }}

0 commit comments

Comments
 (0)