Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 49 additions & 23 deletions .github/workflows/azure-static-web-apps-nice-sea-04261f01e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,55 @@ jobs:
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- name: Get Source
uses: actions/checkout@v2
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: '22'
- name: Run NPM Install
run: npm install
- name: Build
run: npm run generate
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_NICE_SEA_04261F01E }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: 'upload'
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: '/' # App source code path
api_location: '' # Api source code path - optional
output_location: 'dist' # Built app content directory - optional
###### End of Repository/Build Configurations ######
- name: Get Source
uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: '20.19.0'
cache: 'npm'
- name: Run NPM Install
run: npm ci
- name: Verify Node and npm versions
run: |
echo "Node version: $(node --version)"
echo "npm version: $(npm --version)"
echo "Architecture: $(node -p 'process.arch')"
- name: Build
run: npm run generate
- name: Verify build output
run: |
echo "Build output structure:"
ls -la .output/
echo "Public directory contents:"
ls -la .output/public/
echo "Checking for required files:"
test -f .output/public/index.html && echo "✓ index.html exists" || echo "✗ index.html missing"
test -d .output/public/_nuxt && echo "✓ _nuxt directory exists" || echo "✗ _nuxt directory missing"
- name: Copy build output for Azure deployment
run: |
echo "Copying build files to root for Azure Static Web Apps..."
cp -r .output/public/* ./
echo "Root directory now contains:"
ls -la
echo "Verifying index.html in root:"
test -f ./index.html && echo "✓ index.html copied successfully" || echo "✗ index.html not found in root"
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
env:
NODE_VERSION: '20.19.0'
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_NICE_SEA_04261F01E }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: 'upload'
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: '/' # App source code path
api_location: '' # Api source code path - optional
output_location: '/' # Built app content directory - now in root after copy
skip_app_build: true # Skip build since we're pre-building
###### End of Repository/Build Configurations ######

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,9 @@ sw.*

# Vim swap files
*.swp

# Build artifacts copied to root for Azure Static Web Apps
/index.html
/200.html
/404.html
/_nuxt/
Loading