Skip to content

chore: update examples to use the new syntax elements #6

chore: update examples to use the new syntax elements

chore: update examples to use the new syntax elements #6

Workflow file for this run

name: "Build webapp and upload to a release"
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: "Build webapp dist"
run: |
cd webapp
npm i
npm run build
cd dist && zip -r dist.zip .
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Create release
uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.RELEASE_VERSION }}
release_name: Playground ${{ env.RELEASE_VERSION }}
draft: false
prerelease: false
- name: Upload artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./webapp/dist/dist.zip
asset_name: webapp.zip
asset_content_type: application/zip