diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index cdc141f..c4bd04b 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -13,12 +13,8 @@ #### 🔀 变更说明 | Description of Change - + #### 📝 补充信息 | Additional Information - ---- - -> 💡 **提示**:如果修改了 `webui/` 目录下的文件,PR 合并后 CI 会自动构建并提交产物,无需手动构建。 \ No newline at end of file diff --git a/.github/workflows/release-artifacts.yml b/.github/workflows/release-artifacts.yml index 67689cc..00cecee 100644 --- a/.github/workflows/release-artifacts.yml +++ b/.github/workflows/release-artifacts.yml @@ -12,6 +12,9 @@ permissions: jobs: build-and-upload: runs-on: ubuntu-latest + env: + DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} + DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} steps: - name: Checkout uses: actions/checkout@v4 @@ -87,10 +90,11 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Log in to Docker Hub + if: "${{ env.DOCKERHUB_USERNAME != '' }}" uses: docker/login-action@v3 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + username: ${{ env.DOCKERHUB_USERNAME }} + password: ${{ env.DOCKERHUB_TOKEN }} - name: Extract Docker metadata id: meta_release @@ -98,7 +102,7 @@ jobs: with: images: | ghcr.io/${{ github.repository }} - cjackhwang/ds2api + ${{ env.DOCKERHUB_USERNAME || 'cjackhwang' }}/ds2api tags: | type=raw,value=${{ github.event.release.tag_name }} type=raw,value=latest