mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-06-27 18:42:12 +08:00
3afd242677
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
66 lines
1.7 KiB
YAML
66 lines
1.7 KiB
YAML
name: pre-release
|
|
on:
|
|
workflow_dispatch:
|
|
# push:
|
|
# branches:
|
|
# - master
|
|
# paths:
|
|
# - "src/**"
|
|
# - "!src/**/*.json"
|
|
# - "build.mjs"
|
|
# tags-ignore:
|
|
# - "v*"
|
|
|
|
permissions:
|
|
id-token: "write"
|
|
contents: "write"
|
|
|
|
jobs:
|
|
build_and_release:
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
- run: npm ci
|
|
- run: npm run build
|
|
|
|
- uses: josStorer/get-current-time@v2
|
|
id: current-time
|
|
with:
|
|
format: YYYY_MMDD_HHmm
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Chromium_Build_${{ steps.current-time.outputs.formattedTime }}
|
|
path: build/chromium/*
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Firefox_Build_${{ steps.current-time.outputs.formattedTime }}
|
|
path: build/firefox/*
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Chromium_Build_WithoutKatex_${{ steps.current-time.outputs.formattedTime }}
|
|
path: build/chromium-without-katex-and-tiktoken/*
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Firefox_Build_WithoutKatex_${{ steps.current-time.outputs.formattedTime }}
|
|
path: build/firefox-without-katex-and-tiktoken/*
|
|
|
|
- uses: marvinpinto/action-automatic-releases@v1.2.1
|
|
with:
|
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
automatic_release_tag: "latest"
|
|
prerelease: true
|
|
title: "Development Build"
|
|
files: |
|
|
build/chromium.zip
|
|
build/firefox.zip
|
|
build/chromium-without-katex-and-tiktoken.zip
|
|
build/firefox-without-katex-and-tiktoken.zip
|