使用环境变量设置独立服务器的账号和密码 #249
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
permissions: | |
contents: write | |
on: | |
push: | |
branches: | |
- '**' | |
tags: | |
- 'v*' | |
jobs: | |
prebuild: | |
uses: ./.github/workflows/prebuild.yml | |
with: | |
checkout-repo: ${{ github.repository }} | |
checkout-ref: ${{ github.ref }} | |
build-win: | |
needs: [build-server, prebuild] | |
uses: ./.github/workflows/win-release.yml | |
build-server: | |
uses: ./.github/workflows/server-release.yml | |
secrets: inherit | |
build-linux: | |
if: ${{ !startsWith(github.ref, 'refs/tags/') }} | |
needs: prebuild | |
uses: ./.github/workflows/linux-release.yml | |
with: | |
checkout-repo: ${{ github.repository }} | |
checkout-ref: ${{ github.ref }} | |
build-mac: | |
if: ${{ !startsWith(github.ref, 'refs/tags/') }} | |
needs: prebuild | |
uses: ./.github/workflows/mac-release.yml | |
with: | |
checkout-repo: ${{ github.repository }} | |
checkout-ref: ${{ github.ref }} |