From 35ff7332e24f76050d751611327327b07a1905f6 Mon Sep 17 00:00:00 2001 From: VJalili Date: Wed, 3 Jul 2024 14:52:18 -0400 Subject: [PATCH] Update package.json. --- .github/workflows/release.yaml | 41 ++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7ba1afa..2f7f295 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -50,27 +50,30 @@ jobs: # env: # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # run: gh auth login --with-token <<< "${{ secrets.GITHUB_TOKEN }}" - - name: Test release - id: test_release + - name: Commit Dist Files + id: commit_dist_files run: | + BRANCH="dev-nightly-release" git config user.name 'github-actions[bot]' git config user.email 'github-actions[bot]@users.noreply.github.com' - git checkout -b dev-nightly + git checkout -b $BRANCH git add . git commit -m "generated" - git push origin dev-nightly - - - name: Release - id: release - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - REPO=$(echo "$GITHUB_CONTEXT" | jq -r '.repository') - TAG=${{ steps.release_tag.outputs.TAG }} - SHA=${{ steps.release_tag.outputs.SHA }} - - # git tag -a ${{ steps.release_tag.outputs.TAG }} - # git push --follow-tags - - gh api repos/$REPO/git/refs -f ref="refs/tags/$TAG" -f sha="$SHA" - # gh release create ${{ steps.release_tag.outputs.TAG }} --repo "$REPO" --title "some title" --generate-notes \ No newline at end of file + git push origin $BRANCH + git tag -a -m ${{ steps.release_tag.outputs.TAG }} ${{ steps.release_tag.outputs.TAG }} + git push --follow-tags +# +# - name: Release +# id: release +# env: +# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# run: | +# REPO=$(echo "$GITHUB_CONTEXT" | jq -r '.repository') +# TAG=${{ steps.release_tag.outputs.TAG }} +# SHA=${{ steps.release_tag.outputs.SHA }} +# +# # git tag -a ${{ steps.release_tag.outputs.TAG }} +# # git push --follow-tags +# +# gh api repos/$REPO/git/refs -f ref="refs/tags/$TAG" -f sha="$SHA" +# # gh release create ${{ steps.release_tag.outputs.TAG }} --repo "$REPO" --title "some title" --generate-notes \ No newline at end of file