Skip to content

factor out rust constants #6

factor out rust constants

factor out rust constants #6

Workflow file for this run

name: deploy to https://nosrac.me
on:
push:
branches: ["master"]
pull_request:
types: [opened, synchronize, reopened, closed]
branches: ["master"]
env:
APP_LOCATION: "www"
AZURE_STATIC_WEB_APPS_API_TOKEN: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
permissions:
contents: read
jobs:
build_and_deploy_job:
permissions:
contents: read
pull-requests: write
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v3
with:
submodules: true
- run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- run: make
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ env.AZURE_STATIC_WEB_APPS_API_TOKEN }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: "upload"
app_location: ${{ env.APP_LOCATION }}