Deploy to Azure Static Web Apps instead of GH Pages

This commit is contained in:
William Brawner 2022-08-17 02:19:02 +00:00
parent f01457dfba
commit 5260d19e94

View file

@ -1,4 +1,4 @@
name: Deploy to GitHub Pages
name: Deploy to Azure Static Web Apps
on:
push:
@ -24,11 +24,9 @@ jobs:
- name: Test
run: npm run test
- name: Vite Build
run: npm run build -- --base=${{ github.event.repository.name }}
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3.7.3
- name: Deploy
uses: Azure/static-web-apps-deploy@v1
with:
publish_dir: ./dist
github_token: ${{ secrets.GITHUB_TOKEN }}
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
output_location: dist
skip_api_build: true