Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anthonychu/azure-webapps-deno-deploy
A GitHub Action for deploying Deno 🦕 web apps to Azure ☁️
https://github.com/anthonychu/azure-webapps-deno-deploy
azure deno
Last synced: 15 days ago
JSON representation
A GitHub Action for deploying Deno 🦕 web apps to Azure ☁️
- Host: GitHub
- URL: https://github.com/anthonychu/azure-webapps-deno-deploy
- Owner: anthonychu
- License: mit
- Created: 2020-05-28T06:58:39.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-12T05:48:37.000Z (over 1 year ago)
- Last Synced: 2024-12-23T13:08:02.534Z (about 1 month ago)
- Topics: azure, deno
- Language: JavaScript
- Homepage:
- Size: 188 KB
- Stars: 27
- Watchers: 3
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Azure Web Apps Deno Deploy action
This action deploys a Deno app to Azure Web Apps (Linux).
## Inputs
### `app-name`
**Required** Name of the Azure Web App.
### `resource-group`
**Required** Name of the resource group.
### `package`
**Required** Path to zip package to deploy.
### `script-file`
**Required** Path to the script file to pass to `deno run`.
### `deno-version`
**Optional** Deno version to use (default: `latest`).
See the [image tags](https://hub.docker.com/r/anthonychu/azure-webapps-deno/tags) for valid versions.
## Outputs
None
## Example usage
```yaml
on: [push]name: Deploy to Azure
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2- uses: azure/[email protected]
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Set up Deno
uses: denolib/setup-deno@master
with:
deno-version: "1.2.0"- name: Bundle and zip Deno app
run: |
deno bundle server.ts server.bundle.js
zip app.zip server.bundle.js- name: Deploy to Azure Web Apps
uses: anthonychu/azure-webapps-deno-deploy@main
with:
app-name: my-app
resource-group: my-resource-group
package: app.zip
script-file: server.bundle.js
deno-version: "1.2.0"
```## How it works
This action configures an Azure Web App for Linux to use a [custom runtime image](https://hub.docker.com/r/anthonychu/azure-webapps-deno) and deploys your code using [Run From Package](https://docs.microsoft.com/azure/azure-functions/run-functions-from-deployment-package).
It calls the Azure CLI. Ensure your workflow first authenticates `azure/login`.
---
*This is a community open source project. No official support is provided by Microsoft.*