فهرست منبع

Update build.yml

0xJacky 2 سال پیش
والد
کامیت
3348177470
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      .github/workflows/build.yml

+ 5 - 0
.github/workflows/build.yml

@@ -106,6 +106,10 @@ jobs:
             -   name: Checkout
                 uses: actions/checkout@v2
 
+            -   name: Get the version
+                id: get_version
+                run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
+
             -   name: Set up Go
                 uses: actions/setup-go@v2
                 with:
@@ -215,3 +219,4 @@ jobs:
                     push: ${{ github.event_name != 'pull_request' }}
                     tags: |
                         uozi/nginx-ui:latest
+                        uozi/nginx-ui:${{ steps.get_version.outputs.VERSION }}