All Projects → feeloor → azure-static-website-deploy

feeloor / azure-static-website-deploy

Licence: MIT license
Deploys static website to Azure Storage

Programming Languages

shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to azure-static-website-deploy

ghaction-dump-context
GitHub Action composite to dump context
Stars: ✭ 30 (+66.67%)
Mutual labels:  actions
gh-actions-html-table-generator
Read from a json file and write to the README
Stars: ✭ 29 (+61.11%)
Mutual labels:  actions
release-changelog-builder-action
A GitHub action that builds your release notes / changelog fast, easy and exactly the way you want.
Stars: ✭ 515 (+2761.11%)
Mutual labels:  actions
gh-token
Create an installation access token for a GitHub app from your terminal 💻
Stars: ✭ 154 (+755.56%)
Mutual labels:  actions
pr-compliance-action
Check PR for compliance on title, linked issues, and files changed
Stars: ✭ 151 (+738.89%)
Mutual labels:  actions
auth
A GitHub Action for authenticating to Google Cloud.
Stars: ✭ 567 (+3050%)
Mutual labels:  actions
action-my-broken-link-checker
A GitHub Action for checking broken links
Stars: ✭ 32 (+77.78%)
Mutual labels:  actions
teamcity-azure-storage
TeamCity Azure artifacts storage support plugin
Stars: ✭ 14 (-22.22%)
Mutual labels:  azure-storage
setup-lazarus
Set up your GitHub Actions workflow with a specific version of Lazarus
Stars: ✭ 29 (+61.11%)
Mutual labels:  actions
issue-action
github action for github issue
Stars: ✭ 58 (+222.22%)
Mutual labels:  actions
ms-identity-javascript-tutorial
A chapterwise tutorial that will take you through the fundamentals of modern authentication with Microsoft identity platform in Vanilla JavaScript.
Stars: ✭ 100 (+455.56%)
Mutual labels:  azure-storage
kafka-connect-fs
Kafka Connect FileSystem Connector
Stars: ✭ 107 (+494.44%)
Mutual labels:  azure-storage
setup-meteor
Set up your GitHub Actions workflow with a specific version of Meteor.js
Stars: ✭ 17 (-5.56%)
Mutual labels:  actions
100-Days-of-Azure
In this Repository, I am going to mention my Azure Learning for Next 100 Days
Stars: ✭ 27 (+50%)
Mutual labels:  azure-storage
deploy-appengine
A GitHub Action that deploys source code to Google App Engine.
Stars: ✭ 184 (+922.22%)
Mutual labels:  actions
CosmicClone
Cosmic Clone is a utility that can backup\clone\restore a azure Cosmos database Collection. It can also anonymize cosmos documents and helps hide personally identifiable data.
Stars: ✭ 113 (+527.78%)
Mutual labels:  azure-storage
innersource-crawler
This project creates a repos.json that can be utilized by the SAP InnerSource Portal.
Stars: ✭ 24 (+33.33%)
Mutual labels:  actions
gcloud-login-action
A Github Action which can be used to authenticate with Google Cloud Container Registry
Stars: ✭ 21 (+16.67%)
Mutual labels:  actions
composer-action
Docker and GitHub Actions for Composer
Stars: ✭ 34 (+88.89%)
Mutual labels:  actions
do-spaces-action
📦Upload directories/files to DigitalOcean Spaces via GitHub Actions. Supports package/library versioning.
Stars: ✭ 30 (+66.67%)
Mutual labels:  actions

GitHub Action to Upload to Azure Storage

⚠️ Note: To use this action, you must have access to the GitHub Actions feature.

This action is designed to use the Azure CLI to enable static website and upload a directory of your choice to your Azure Storage account.

Usage

Example

Place in a .yml file such as this one in your .github/workflows folder. Refer to the documentation on workflow YAML syntax here.

name: Upload To Azure
on: push

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      - uses: feeloor/azure-static-website-deploy@master
        env:
          SOURCE_DIR: "./public"
          AZURE_CLIENT_ID: "<azure-client-id>"
          AZURE_TENANT_ID: "<azure-tenant-id>"
          AZURE_SECRET: "<azure-secret>"
          AZURE_SUBSCRIPTION_ID: "<azure-subscription-id>"
          AZURE_STORAGE_ACCOUNT_NAME: "<azure-storage-account-name>"
          AZURE_INDEX_DOCUMENT_NAME: "<index-document-name>"
          AZURE_ERROR_DOCUMENT_NAME: "<error-document-name>"
          FORCE_OVERWRITE: "true"

Required Variables

Key Value Type Required
SOURCE_DIR The name of the directory you want to upload env Yes
AZURE_CLIENT_ID Your Azure Client ID. secret Yes
AZURE_SECRET Your Azure Secret. secret Yes
AZURE_TENANT_ID Your Azure Tenant ID. secret Yes
AZURE_SUBSCRIPTION_ID Your Azure Subscription ID. secret Yes
AZURE_STORAGE_ACCOUNT_NAME Your Azure Storage Account Name. secret Yes
AZURE_INDEX_DOCUMENT_NAME The index document that you specify when you enable static website hosting, appears when users open the site and don't specify a specific file. More Information Here env Yes
AZURE_ERROR_DOCUMENT_NAME If the server returns a 404 error, and you have not specified an error document when you enabled the website, then a default 404 page is returned to the user. More Information Here secret No
FORCE_OVERWRITE If the uploaded file already exists, by default the AZ CLI (since March 2022) will not uploads the file. It is possible to force the upload. More Information Here env No

License

This project is distributed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].