]> git.ipfire.org Git - thirdparty/blocklistproject/lists.git/commitdiff
update tag
authorgap579137 <gap579137@gmail.com>
Sun, 18 May 2025 02:51:48 +0000 (21:51 -0500)
committergap579137 <gap579137@gmail.com>
Sun, 18 May 2025 02:51:48 +0000 (21:51 -0500)
.github/workflows/aggregate.yml

index b6bc5eabf2669d275ab0573b97766ff511ff9e32..880605a3aac0aacd1f6b9f7f73168d1e942dbbad 100644 (file)
@@ -31,6 +31,52 @@ jobs:
   release:
     needs: build
     runs-on: ubuntu-latest
+    steps:
+      # 1) Checkout with full history and push rights
+      - name: Checkout code
+        uses: actions/checkout@v3
+        with:
+          fetch-depth: 0            # so tags and history are available
+          persist-credentials: true # so we can push
+
+      # 2) Compute YYYYMMDD
+      - name: Set release date
+        run: echo "RELEASE_DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
+
+      # 3) Create & push the tag
+      - name: Create Git tag
+        run: |
+          git config user.name "github-actions[bot]"
+          git config user.email "github-actions[bot]@users.noreply.github.com"
+          git tag aggregated-${{ env.RELEASE_DATE }}
+          git push origin aggregated-${{ env.RELEASE_DATE }}
+
+      # 4) Now GitHub Release will find that tag
+      - name: Create GitHub Release
+        id: create_release
+        uses: actions/create-release@v1
+        with:
+          tag_name: aggregated-${{ env.RELEASE_DATE }}
+          release_name: Aggregated Lists ${{ env.RELEASE_DATE }}
+          body: |
+            Aggregated lists for ${{ env.RELEASE_DATE }}.
+          draft: false
+          prerelease: false
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+      # 5) Upload the three aggregated files
+      - name: Upload release assets
+        uses: softprops/action-gh-release@v1
+        with:
+          files: |
+            releases/aggregated-hosts.txt
+            releases/aggregated-dnsmasq.conf
+            releases/aggregated-adblock.txt
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+    needs: build
+    runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3