From f7901790ad7798bb48727654fb909cc106bb3df6 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Fri, 2 Sep 2022 09:44:16 -0400 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7a993adb..e57cb8fe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -708,3 +708,27 @@ jobs: src/*.tar.xz src/*.zip src/*.msi + +publish: + runs-on: ubuntu-latest + needs: build + steps: + + - name: Download artifacts + uses: actions/download-artifact@v3 + + - name: Set datetime version string + id: dateversion + run: | + echo "::set-output name=dateversion::$(date +'%Y%m%d.%k%M%S')" + + - uses: "marvinpinto/action-automatic-releases@latest" + name: Publish draft release + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: ${{ steps.dateversion.outputs.dateversion }} + prerelease: false + draft: true + title: "GAM ${{ steps.dateversion.outputs.dateversion }}" + files: | + gam-binaries/*