diff --git a/.github/actions/package/action.yml b/.github/actions/package/action.yml index de9f06e..d86345b 100644 --- a/.github/actions/package/action.yml +++ b/.github/actions/package/action.yml @@ -14,28 +14,28 @@ runs: - name: Upload DEB artifact if: runner.os == 'Linux' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: linux-deb.zip + name: sigutils-linux-deb.zip path: build/dist/*.deb - name: Upload TGZ artifact if: runner.os == 'Linux' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: linux-tgz.zip + name: sigutils-linux-tgz.zip path: build/dist/*.tar.gz - name: Upload TGZ artifact if: runner.os == 'MacOS' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: macos-tgz.zip + name: sigutils-macos-tgz.zip path: build/dist/*.tar.gz - name: Upload ZIP artifact if: runner.os == 'Windows' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: windows-zip.zip + name: sigutils-windows-zip.zip path: build/dist/*.zip diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 153e983..79603b4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -104,3 +104,37 @@ jobs: uses: "./.github/actions/package" with: generators: ZIP + + release: + runs-on: "ubuntu-latest" + needs: + - build-linux + - build-macos + - build-windows + + steps: + - name: Get current date + id: date + run: echo "::set-output name=date::$(date +'%Y-%m-%d')" + + - name: Download binaries + uses: actions/download-artifact@v4 + + - name: Release nightly + if: github.ref == 'refs/heads/master' + uses: marvinpinto/action-automatic-releases@v1.2.1 + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest" + prerelease: true + title: "Sigutils nightly (${{steps.date.outputs.date}})" + files: sigutils*/* + + - name: Release stable + if: contains(github.ref, 'refs/tags/v') + uses: marvinpinto/action-automatic-releases@v1.2.1 + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + prerelease: false + title: "Sigutils ${{github.ref_name}}" + files: sigutils*/*