ci: release actions

This commit is contained in:
log1997
2025-12-05 17:43:05 +08:00
parent 7447bab939
commit bc09902a3b

View File

@@ -42,40 +42,21 @@ jobs:
run: | run: |
mv dist dist-prod mv dist dist-prod
mv dist-prod/index.html dist-prod/404.html mv dist-prod/index.html dist-prod/404.html
mv dist-file dist-file-prod
- name: Create source code archive
run: |
mkdir -p temp_source
cp -r .git temp_source/.git
cp -r src temp_source/src
cp -r public temp_source/public
cp -r .github temp_source/.github
cp package.json temp_source/
cp vite.config.ts temp_source/
cp tsconfig.json temp_source/
cp tsconfig.node.json temp_source/
cp index.html temp_source/
cp README.md temp_source/
cp Dockerfile temp_source/
tar -czf source-code.tar.gz -C temp_source .
rm -rf temp_source
- name: Create production build archive - name: Create production build archive
run: | run: |
tar -czf production-build.tar.gz dist-prod tar -czf dist.tar.gz dist-prod
- name: Create file protocol build archive - name: Create file protocol build archive
run: | run: |
tar -czf file-protocol-build.tar.gz dist-file-prod tar -czf dist-file.tar.gz dist-file
- name: Release - name: Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with:
files: | files: |
source-code.tar.gz dist.tar.gz
production-build.tar.gz dist-file.tar.gz
file-protocol-build.tar.gz
draft: true draft: true
prerelease: false prerelease: false
generate_release_notes: true generate_release_notes: true