Skip to content

Commit dd2fc66

Browse files
authored
Update main.yml
1 parent bf485aa commit dd2fc66

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jobs:
1818
- name: Create tarball of frontend files
1919
run: |
2020
mkdir -p temp_frontend
21-
cp -R * temp_frontend/ || true
21+
shopt -s extglob
22+
cp -R !(temp_frontend) temp_frontend/ || true
2223
tar -czf frontend.tar.gz -C temp_frontend .
2324
2425
- name: Upload files to PythonAnywhere
@@ -27,9 +28,9 @@ jobs:
2728
PA_USER: ${{ secrets.PYTHONANYWHERE_USERNAME }}
2829
run: |
2930
curl -X POST \
30-
-H "Authorization: Token ${PA_TOKEN}" \
31+
-H "Authorization: Token $PA_TOKEN" \
3132
-F "content=@frontend.tar.gz" \
32-
https://www.pythonanywhere.com/api/v0/user/${PA_USER}/files/path/home/${PA_USER}/mysite/frontend/RPG/frontend.tar.gz
33+
https://www.pythonanywhere.com/api/v0/user/$PA_USER/files/path/home/$PA_USER/mysite/frontend/RPG/frontend.tar.gz
3334
3435
- name: Extract files on PythonAnywhere
3536
env:

0 commit comments

Comments
 (0)