diff --git a/.github/workflows/main_rasmus-schoolproject.yml b/.github/workflows/main_rasmus-schoolproject.yml new file mode 100644 index 000000000..1486fcbde --- /dev/null +++ b/.github/workflows/main_rasmus-schoolproject.yml @@ -0,0 +1,35 @@ +# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy +# More GitHub Actions for Azure: https://github.com/Azure/actions + +name: 'Build and deploy Python app to Azure Web App: Rasmus-Schoolproject' + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python version + uses: actions/setup-python@v1 + with: + python-version: '3.10' + + - name: Build using AppService-Build + uses: azure/appservice-build@v2 + with: + platform: python + platform-version: '3.10' + + - name: 'Deploy to Azure Web App' + uses: azure/webapps-deploy@v2 + with: + app-name: 'Rasmus-Schoolproject' + slot-name: 'production' + publish-profile: ${{ secrets.AzureAppService_PublishProfile_dae9510386c248a8a89c21147baa6bbf }} diff --git a/hello_app/templates/about.html b/hello_app/templates/about.html index 8611b6414..905aa6aea 100644 --- a/hello_app/templates/about.html +++ b/hello_app/templates/about.html @@ -3,5 +3,5 @@ About us {% endblock %} {% block content %} -
About page for the Visual Studio Code Flask tutorial.
+JEg håber virkelig det her virker .
{% endblock %} diff --git a/hello_app/templates/home.html b/hello_app/templates/home.html index 95609fecd..4666f3d4f 100644 --- a/hello_app/templates/home.html +++ b/hello_app/templates/home.html @@ -1,7 +1,8 @@ {% extends "layout.html" %} -{% block title %} +{% block titel %} Home {% endblock %} {% block content %}Home page for the Visual Studio Code Flask tutorial.
{% endblock %} +