From 09cdd5a460a0c5256bfc189c1555ac5006d60728 Mon Sep 17 00:00:00 2001 From: NaveenKumar Namachivayam Date: Sun, 19 Nov 2023 13:52:53 -0500 Subject: [PATCH] Add: GitHub Action Signed-off-by: NaveenKumar Namachivayam --- .github/workflows/python-app.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index e2a050b..215968b 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -69,11 +69,21 @@ jobs: path: dist-arm64/Hamster-darwin.dmg if: matrix.os == 'self-hosted' && matrix.arch == 'ARM64' + - name: Create tag + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git tag v${{ github.run_number }} + git push origin v${{ github.run_number }} + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Release Darwin uses: softprops/action-gh-release@v1 if: github.ref == 'refs/heads/fix/gh-actions' with: token: ${{ secrets.HAMSTER_APP_RELEASE_SECRET }} + tag_name: v${{ github.run_number }} files: | dist-arm64/Hamster-darwin.dmg @@ -82,5 +92,6 @@ jobs: if: github.ref == 'refs/heads/fix/gh-actions' with: token: ${{ secrets.HAMSTER_APP_RELEASE_SECRET }} + tag_name: v${{ github.run_number }} files: | dist-intel/Hamster-intel.dmg \ No newline at end of file