Skip to content

Deploy

Deploy #92

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
workflow_dispatch:
schedule:
- cron: '0 1 * * 0'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: montudor/action-zip@v1
- uses: actions/setup-node@v4
with:
node-version: lts/*
- run: npm install
- run: npm install @coderline/alphatab@latest
- run: npm run build
- run: cp web.config ./build
- name: Package Zip
run: zip -qq -r ./website.zip ./build
- name: Push Zip To Server
run: |
curl --request POST \
--url https://docs.alphaTab.net/deploy-zip.php \
--header 'authorization: Bearer ${{ secrets.DEPLOY_TOKEN }}' \
--header 'branch: website' \
-F 'website=@./website.zip' \
--fail