From 792f42ffd64fceddb8e38b09bbcaf036a6f8b50a Mon Sep 17 00:00:00 2001 From: Alexander Volz Date: Thu, 2 Nov 2023 22:50:38 +0100 Subject: [PATCH] test of ci --- .github/workflows/test_and_build.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_and_build.yml b/.github/workflows/test_and_build.yml index a526896f..f1b884f5 100644 --- a/.github/workflows/test_and_build.yml +++ b/.github/workflows/test_and_build.yml @@ -116,7 +116,7 @@ jobs: - name: replace CS2VERSION variable in meta files run: sed -i 's|%%CS2VERSION%%|1.39.6.5/13965 9842|g' ./release.json; - name: Release - if: ${{ !(contains(github.ref, '-beta')) }} + if: ${{ (startsWith(github.ref, 'refs/tags/v')) && !(contains(github.ref, '-beta')) }} uses: softprops/action-gh-release@v1 with: files: | @@ -125,7 +125,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: pre Release - if: ${{ (contains(github.ref, '-beta')) }} + if: ${{ (startsWith(github.ref, 'refs/tags/v')) && (contains(github.ref, '-beta')) }} uses: softprops/action-gh-release@v1 with: prerelease: true @@ -133,4 +133,12 @@ jobs: ./release.json ./PugSharp_${PUGSHARPNETVER}.zip env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: upload pre - pre release + uses: actions/upload-artifact@v3 + with: + name: latest_pre_pre + path: | + ./release.json + ./PugSharp_${PUGSHARPNETVER}.zip + retention-days: 10