From af9855776f1af803ed19798562adf59003ac26e0 Mon Sep 17 00:00:00 2001 From: loyalsoldier Date: Wed, 11 Dec 2019 05:36:17 +0800 Subject: [PATCH] fixed tag --- .github/workflows/build.yml | 33 ++------------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 496ef3a..b11afa2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,45 +29,16 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v1 - - name: Generate + - name: Generate geoip.dat and geosite.dat file run: | chmod +x generate-rules-dat.sh ./generate-rules-dat.sh - # - name: Create Latest tag - # uses: EndBug/latest-tag@latest - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Upload dat files to release uses: svenstaro/upload-release-action@v1-release with: file: /home/runner/work/v2ray-rules-dat/v2ray-rules-dat/v2ray/${{ matrix.artifact_name }} asset_name: ${{ matrix.asset_name }} - # tag: ${{ github.ref }} - tag: ${{ hashFiles('v2ray/*.dat') }} + tag: latest overwrite: true repo_token: ${{ secrets.GITHUB_TOKEN }} - - # - name: Create Release and Tag - # id: create_release - # uses: actions/create-release@v1 - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # tag_name: ${{ github.ref }} - # release_name: Release ${{ github.ref }} - # body: Automatically released by GitHub Workflow. - # draft: false - # prerelease: false - - # - name: Upload dat files to release - # id: upload-release-asset - # uses: actions/upload-release-asset@v1.0.1 - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # upload_url: ${{ steps.create_release.outputs.upload_url }} - # asset_path: /home/runner/work/v2ray-rules-dat/v2ray-rules-dat/v2ray/${{ matrix.artifact_name }} - # asset_name: ${{ matrix.asset_name }} - # asset_content_type: application/octet-stream