diff --git a/.github/workflows/installer-release.yml b/.github/workflows/installer-release.yml index 1e1693b..24c8351 100644 --- a/.github/workflows/installer-release.yml +++ b/.github/workflows/installer-release.yml @@ -20,6 +20,7 @@ jobs: fetch-depth: '0' - name: Set VERSION (e.g. 1.0.0) and FULL_VERSION (e.g. 1.0.0-abcdef4) + if: github.event_name != 'pull_request' run: | VERSION="${GITHUB_REF#refs/tags/v}" SHORT_SHA=$(git rev-parse --short HEAD) @@ -27,6 +28,11 @@ jobs: echo "VERSION=${VERSION}" >> $GITHUB_ENV echo "FULL_VERSION=${FULL_VERSION}" >> $GITHUB_ENV shell: bash + - name: set fake version for PR + if: github.event_name == 'pull_request' + run: | + echo "VERSION=0.0.1" >> $GITHUB_ENV + echo "FULL_VERSION=0.0.1-pr" >> $GITHUB_ENV - name: Validate version format run: | @@ -77,14 +83,14 @@ jobs: - name: Sign Installer uses: sillsdev/codesign/trusted-signing-action@v3 - if: startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.ref, 'refs/tags/v') && github.event_name != 'pull_request' with: credentials: ${{ secrets.TRUSTED_SIGNING_CREDENTIALS }} files-folder: installer/Output files-folder-filter: SolidInstaller*.exe - name: Create Release - if: startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.ref, 'refs/tags/v') && github.event_name != 'pull_request' uses: softprops/action-gh-release@v2 with: files: installer/Output/SolidInstaller*.exe