chore: rename #129
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Production | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
name: Deploy to Azure Static Web Apps | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: '0.126.1' | |
extended: true | |
- name: Setup NodeJS | |
uses: oven-sh/setup-bun@v2 | |
- name: Install dependencies | |
run: bun install --frozen-lockfile | |
- name: Build website | |
run: bun run build | |
- name: Deploy to Azure | |
uses: Azure/static-web-apps-deploy@v1 | |
with: | |
action: "upload" | |
skip_app_build: true | |
app_location: "/public" | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
azure_static_web_apps_api_token: ${{ secrets.STATIC_WEB_APP_DEPLOY_TOKEN }} |