Skip to content

Commit

Permalink
build(github_action): modify github action to deploy the dist folder …
Browse files Browse the repository at this point in the history
…to azure
  • Loading branch information
javierhersan committed May 27, 2024
1 parent a84e704 commit 3ec2846
Showing 1 changed file with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,11 @@ jobs:
run: pnpm install
- name: Build project
run: pnpm build
- 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_BRAVE_GLACIER_0A3A05903 }}
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: Deploy to Azure Static Web Apps
env:
AZURE_STATIC_WEB_APPS_API_TOKEN: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BRAVE_GLACIER_0A3A05903 }}
run: |
npx swa deploy ./dist --api-token $AZURE_STATIC_WEB_APPS_API_TOKEN --env production
close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
Expand Down

0 comments on commit 3ec2846

Please sign in to comment.