{"id":26874155,"url":"https://github.com/umuttopalak/pythonanywhere-deploy-action","last_synced_at":"2025-05-07T11:41:40.221Z","repository":{"id":230302362,"uuid":"779042848","full_name":"umuttopalak/pythonanywhere-deploy-action","owner":"umuttopalak","description":"A GitHub Action for automating CI/CD processes on a specified server. This action changes directories, activates virtual environments, updates git repositories, installs dependencies, runs database migrations, and reloads web applications.","archived":false,"fork":false,"pushed_at":"2025-01-16T16:00:48.000Z","size":463,"stargazers_count":21,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T09:38:10.403Z","etag":null,"topics":["deployment","django","github-actions","github-workflows","pythonanywhere"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/umuttopalak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-28T23:20:43.000Z","updated_at":"2025-03-27T01:47:07.000Z","dependencies_parsed_at":"2024-03-29T01:25:17.515Z","dependency_job_id":"9d077f2d-b346-4252-ac9e-c4eff3bb535b","html_url":"https://github.com/umuttopalak/pythonanywhere-deploy-action","commit_stats":null,"previous_names":["umuttopalak/pythonanywhere-deploy-action"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umuttopalak%2Fpythonanywhere-deploy-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umuttopalak%2Fpythonanywhere-deploy-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umuttopalak%2Fpythonanywhere-deploy-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umuttopalak%2Fpythonanywhere-deploy-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umuttopalak","download_url":"https://codeload.github.com/umuttopalak/pythonanywhere-deploy-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252873151,"owners_count":21817703,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deployment","django","github-actions","github-workflows","pythonanywhere"],"created_at":"2025-03-31T09:33:59.832Z","updated_at":"2025-05-07T11:41:40.197Z","avatar_url":"https://github.com/umuttopalak.png","language":"JavaScript","readme":"# pythonanywhere-deploy-action\nGitHub action to reload a Django Backend webapp on pythonanywhere. The service pythonanywhere can host web apps based on Python (i.e. Django, Flask, ...). The web app can be updated by copying files to the server with various technologies (i.e. Git, SSH, ...) but afterwards the web app has to be restarted manually. Otherwise the web app is not updated.\n\nIn order to enable a continuous deployment to pythonanywhere, this GitHub action automatically updates your pythonanywhere web app with the help of their API.\n\n# Note\nThe pythonanywhere API is currently in beta state. Because of that it is possible that the action might not work anymore after a change in the API interface.\n\n# Usage\n\n```yaml\n- name: Re-Deploy Pythonanywhere Django API\n        uses: umuttopalak/pythonanywhere-deploy-action@v1.1.0\n        with:\n          host: \u003cpythonanywhere host\u003e\n          username: \u003cyour-username\u003e\n          api_token: \u003cpythonanywhere-api-token\u003e\n          domain_name: \u003cpythonanywhere-web-app-domain\u003e\n```\n\n## Get API token\nIn order to get the API token you have\n\nLogin into your pythonanywhere account.\nNavigate to Account.\nClick on section API token.\nGenerate an API token and save it.\nDo not directly paste your api token or other sensitive data in your workflow xml. Create GitHub action secrets and reference those secrets in your workflow xml.\n\n# Example\n```yaml\nname: Deploy pythonanywhere webapp\non: [push]\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout repository\n        uses: actions/checkout@v2\n\n      - name: Re-Deploy Pythonanywhere Django API\n        uses: umuttopalak/pythonanywhere-deploy-action@v1.1.0\n        with:\n          host: 'www.pythonanywhere.com' or 'www.eu.pythonanywhere.com'\n          username: {{ secrets.USERNAME }}\n          api_token: {{ secrets.API_TOKEN }}\n          domain_name: {{ secrets.DOMAIN_NAME }}\n```\n\n# License\nMIT: See *LICENSE* for detailed license information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumuttopalak%2Fpythonanywhere-deploy-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumuttopalak%2Fpythonanywhere-deploy-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumuttopalak%2Fpythonanywhere-deploy-action/lists"}