Skip to content

Update azure-static-web-apps-lively-cliff-06d04ff03.yml #3

Update azure-static-web-apps-lively-cliff-06d04ff03.yml

Update azure-static-web-apps-lively-cliff-06d04ff03.yml #3

name: Azure Static Web Apps CI/CD
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- master
jobs:
build:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build Job
steps:
- uses: actions/checkout@v3
with:
submodules: true
lfs: false
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Install dependencies, build, and test
run: |
npm install
npm run build --if-present
npm run test --if-present
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
with:
name: node-app
path: build # This should be your distribution path, not the root path
deploy:

Check failure on line 41 in .github/workflows/azure-static-web-apps-lively-cliff-06d04ff03.yml

View workflow run for this annotation

GitHub Actions / Azure Static Web Apps CI/CD

Invalid workflow file

The workflow is not valid. .github/workflows/azure-static-web-apps-lively-cliff-06d04ff03.yml (Line: 41, Col: 5): Unexpected value 'deploy'
- name: Build And Deploy
id: builddeploy
needs:
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_LIVELY_CLIFF_06D04FF03 }}
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: "/dimria-fe" # App source code path
api_location: "" # Api source code path - optional
output_location: "build" # Built app content directory - optional
###### End of Repository/Build Configurations ######