Skip to content

Commit

Permalink
Throwing darts...
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-wjp committed Feb 8, 2025
1 parent 16da991 commit 188448b
Show file tree
Hide file tree
Showing 3 changed files with 1,429 additions and 27 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/azure-static-web-apps-salmon-plant-01410310f.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Deploy Vite App
name: Build and Deploy to Azure Static Web Apps

on:
push:
Expand All @@ -10,23 +10,30 @@ jobs:
runs-on: ubuntu-latest

steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v3

# Set up Node.js environment
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16

# Install dependencies
- name: Install dependencies
run: npm install

# Build the Vite app
- name: Build Vite app
run: npm run build

- name: Deploy to Azure
uses: azure/webapps-deploy@v2
# Deploy to Azure Static Web Apps
- name: Deploy to Azure Static Web Apps
uses: Azure/static-web-apps-deploy@v1
with:
app-name: hodlbot-vitefe
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: ./dist
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: "upload"
app_location: "/"
output_location: "dist"
Loading

0 comments on commit 188448b

Please sign in to comment.