Compare commits
2 Commits
v0.3.25020
...
v0.3.25020
| Author | SHA1 | Date | |
|---|---|---|---|
| 6795697dea | |||
| 0397465ec3 |
@@ -34,14 +34,12 @@ jobs:
|
|||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
- name: Deploy to production server
|
- name: Deploy to production server
|
||||||
run: |
|
run: |
|
||||||
echo "${{ github.ref_name }} - ${{ github.run_number }}"
|
|
||||||
TOKEN=$(curl --silent --location 'https://auth.makecodes.dev/auth' \
|
TOKEN=$(curl --silent --location 'https://auth.makecodes.dev/auth' \
|
||||||
--header 'Content-Type: application/json' \
|
--header 'Content-Type: application/json' \
|
||||||
--data '{
|
--data '{
|
||||||
"email": "'$USERNAME'",
|
"email": "'$USERNAME'",
|
||||||
"password": "'$PASSWORD'"
|
"password": "'$PASSWORD'"
|
||||||
}' | jq -r '.token')
|
}' | jq -r '.token')
|
||||||
echo $TOKEN
|
|
||||||
curl --location --silent 'https://deployer.makecodes.dev/deploy' \
|
curl --location --silent 'https://deployer.makecodes.dev/deploy' \
|
||||||
--header 'Content-Type: application/json' \
|
--header 'Content-Type: application/json' \
|
||||||
--header "Authorization: Bearer $TOKEN" \
|
--header "Authorization: Bearer $TOKEN" \
|
||||||
|
|||||||
@@ -131,8 +131,7 @@ REST_FRAMEWORK = {
|
|||||||
'DEFAULT_RENDERER_CLASSES': ('rest_framework.renderers.JSONRenderer',),
|
'DEFAULT_RENDERER_CLASSES': ('rest_framework.renderers.JSONRenderer',),
|
||||||
}
|
}
|
||||||
|
|
||||||
if DEBUG is True:
|
CORS_ALLOW_ALL_ORIGINS = True
|
||||||
CORS_ALLOW_ALL_ORIGINS = True
|
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
||||||
|
|||||||
Reference in New Issue
Block a user