Skip to content

fix mistake committed #15

fix mistake committed

fix mistake committed #15

Workflow file for this run

name: Deploy GamifyWorkout to Azure Static Web App
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main
env:
HUGO_VERSION: 0.146.7
jobs:
deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-24.04
name: Deploy Job
steps:
- uses: actions/checkout@v3
with:
repository: jburditt/fullswing-angular-library
- uses: actions/checkout@v3
with:
path: projects/gamifyworkout
submodules: true
lfs: false
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '22.x'
- name: Install Angular dependencies
run: npm install
- name: Build Angular app
run: npm run build gamifyworkout
- 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_PROUD_BAY_0CE44D31E }}
action: "upload"
app_location: "/dist/gamifyworkout/browser" # Angular static App path
api_location: "/projects/gamifyworkout/api/func-app" # Api source code path - optional
skip_app_build: true
output_location: ""
close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-24.04
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
action: "close"