Here is my pipelines bitbucket-pipelines.yml
image: atlassian/default-image:latest
options:
docker: true
size: 2x
pipelines:
branches:
dev:
- step:
name: Deploy to test
deployment: test
caches:
- node
script:
- pipe: microsoft/azure-static-web-apps-deploy:main
variables:
APP_LOCATION: "$BITBUCKET_CLONE_DIR/"
OUTPUT_LOCATION: "$BITBUCKET_CLONE_DIR/web-build"
API_TOKEN: $deployment_token
APP_BUILD_COMMAND: npx expo export:web
definitions:
services:
docker:
memory: 4096
I tried to create artifacts first then make the deployment via microsoft/azure-static-web-apps-deploy:main
pipe, but it did not work too.
image: node:16-alpine
options:
docker: true
size: 2x
pipelines:
branches:
dev:
- step:
name: Build and Test
caches:
- node
script:
- npm install yarn
- yarn
- npx expo export:web
artifacts:
- web-build/**
- step:
name: Deploy to test
deployment: test
script:
- pipe: microsoft/azure-static-web-apps-deploy:main
variables:
APP_LOCATION: "$BITBUCKET_CLONE_DIR/"
OUTPUT_LOCATION: "$BITBUCKET_CLONE_DIR/web-build"
API_TOKEN: $deployment_token
SKIP_APP_BUILD: "true"
definitions:
services:
docker:
memory: 4096