Add the path to the build step #3
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 (API) | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build_and_deploy_job: | |
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') | |
runs-on: ubuntu-latest | |
name: Build and Deploy Uses This | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.1' | |
bundler-cache: true | |
- name: Build the site | |
run: | | |
bundle exec tasks/build_api site | |
touch site/index.html | |
cp staticwebapp.config.json site/ | |
- name: Deploy to Azure | |
id: deploy | |
uses: azure/static-web-apps-deploy@v1 | |
with: | |
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ASHY_FLOWER_0DA46DC10 }} | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
action: "upload" | |
app_location: "site" | |
api_location: "" | |
output_location: "" | |
skip_app_build: true | |
build_timeout_in_minutes: 30 |