Merge branch 'release' into dev
This commit is contained in:
2
.github/CONTRIBUTING.md
vendored
2
.github/CONTRIBUTING.md
vendored
@@ -17,6 +17,8 @@
|
||||
|
||||
推荐使用`pnpm`来进行包的管理。
|
||||
|
||||
开发/打包tauri应用程序需要rust环境,请自行[安装](https://rustup.rs/)
|
||||
|
||||
克隆仓库后,运行:
|
||||
|
||||
```bash
|
||||
|
||||
56
.github/workflows/release.yml
vendored
56
.github/workflows/release.yml
vendored
@@ -41,6 +41,7 @@ jobs:
|
||||
- name: Prepare directories
|
||||
run: |
|
||||
mv dist dist-prod
|
||||
cp dist-prod/index.html dist-prod/404.html
|
||||
|
||||
- name: Create production build archive
|
||||
run: |
|
||||
@@ -52,25 +53,13 @@ jobs:
|
||||
name: web-build
|
||||
path: dist.zip
|
||||
|
||||
- name: Prepare GitHub Pages artifact
|
||||
run: |
|
||||
cp -r dist-prod dist-gh-pages
|
||||
|
||||
- name: Upload GitHub Pages artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
- name: Deploy to gh-pages branch
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
name: github-pages
|
||||
path: dist-gh-pages
|
||||
|
||||
- name: Prepare GitHub Pages artifact
|
||||
run: |
|
||||
cp -r dist-prod dist-gh-pages
|
||||
|
||||
- name: Upload GitHub Pages artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: github-pages
|
||||
path: dist-gh-pages
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./dist-prod
|
||||
publish_branch: gh-pages
|
||||
force_orphan: true
|
||||
|
||||
publish-tauri:
|
||||
permissions:
|
||||
@@ -118,37 +107,8 @@ jobs:
|
||||
prerelease: false
|
||||
run: pnpm tauri build
|
||||
|
||||
deploy-gh-pages:
|
||||
needs: build-web
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
|
||||
steps:
|
||||
- name: Download GitHub Pages artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: github-pages
|
||||
path: dist-gh-pages
|
||||
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v3
|
||||
|
||||
- name: Upload to GitHub Pages
|
||||
uses: actions/deploy-pages@v2
|
||||
id: deployment
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./dist-gh-pages
|
||||
|
||||
release:
|
||||
needs: [build-web, publish-tauri, deploy-gh-pages]
|
||||
needs: [build-web, publish-tauri]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
||||
@@ -37,9 +37,9 @@ try {
|
||||
console.error('无法获取当前分支名称');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
console.log(`当前分支为: ${currentBranch}`);
|
||||
// 检查当前分支是否为 release 分支
|
||||
if (currentBranch.startsWith('release/')) {
|
||||
if (currentBranch.startsWith('release')) {
|
||||
// 如果当前在 release 分支上,检查当前分支的 HEAD 提交是否与 tag 指向的提交一致
|
||||
const currentBranchCommit = execSync(`git rev-parse ${currentBranch}`, { encoding: 'utf-8' }).trim();
|
||||
|
||||
|
||||
14
README.md
14
README.md
@@ -5,12 +5,14 @@
|
||||
|
||||
# log-lottery 🚀🚀🚀🚀
|
||||
|
||||
[](https://github.com/LOG1997/log-lottery)
|
||||
[](https://github.com/LOG1997/log-lottery)
|
||||
[](https://github.com/log1997)
|
||||
[](https://github.com/log1997)
|
||||
[](https://github.com/log1997)
|
||||
|
||||
[](https://github.com/LOG1997/log-lottery)
|
||||
[](https://github.com/LOG1997/log-lottery)
|
||||
[](https://github.com/LOG1997/log-lottery)
|
||||
[](https://github.com/log1997)
|
||||
[](https://github.com/log1997)
|
||||
[](<https://hub.docker.com/r/log1997/log-lottery>)
|
||||
[](https://github.com/LOG1997/log-lottery/releases)
|
||||
[](https://github.com/LOG1997/log-lottery/releases)
|
||||
</div>
|
||||
|
||||
log-lottery是一个可配置可定制化的抽奖应用,炫酷3D球体,可用于年会抽奖等活动,支持奖品、人员、界面、图片音乐配置。
|
||||
|
||||
2
src-tauri/Cargo.lock
generated
2
src-tauri/Cargo.lock
generated
@@ -77,7 +77,7 @@ checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61"
|
||||
|
||||
[[package]]
|
||||
name = "app"
|
||||
version = "0.5.0"
|
||||
version = "0.5.1"
|
||||
dependencies = [
|
||||
"log",
|
||||
"serde",
|
||||
|
||||
Reference in New Issue
Block a user