Skip to content

Strip down web (#351) #70

Strip down web (#351)

Strip down web (#351) #70

Workflow file for this run

name: Deploy Web Demo
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
cd web/
make deps
make build
- run: |
cd web/packages/app/dist && zip -r ../../../../web-demo-latest.zip ./*
- uses: softprops/action-gh-release@v1
with:
tag_name: latest
draft: false
prerelease: false
files: web-demo-latest.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.WEB_TRIGGER_DEPLOY_TOKEN }}" \
https://api.github.com/repos/polarity-lang/polarity-lang.github.io/dispatches \
-d '{"event_type":"trigger-deploy"}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}