Files
geekgeekrun/.github/workflows/release-ui.yml
2024-04-10 00:48:10 +00:00

47 lines
1.3 KiB
YAML

name: Release UI
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- "ui-v*" # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
build:
env:
PUPPETEER_SKIP_DOWNLOAD: 'true'
runs-on: ubuntu-latest
permissions: write-all
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout source
uses: actions/checkout@v2
- name: Install dependencies
run: |
npm i pnpm@^8.6.9 -g
cd packages/ui
pnpm i --force
- name: Build
run: |
cd packages/ui
node ./scripts/github-ci-build.mjs
- name: List folder
run: |
ls -ll ${{ github.workspace }}
ls -ll ${{ github.workspace }}/packages
ls -ll ${{ github.workspace }}/packages/ui
ls -ll ${{ github.workspace }}/packages/ui/dist
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "${{ github.workspace }}/packages/ui/dist/*.zip,${{ github.workspace }}/packages/ui/dist/*.exe,${{ github.workspace }}/packages/ui/dist/*.deb,${{ github.workspace }}/packages/ui/dist/*.rpm"
tag: ${{ github.ref }}
token: ${{ secrets.GITHUB_TOKEN }}
body: TODO New Release.