From bba9f478c430fffca959c5999f53f309205c8cec Mon Sep 17 00:00:00 2001 From: Bennett Benedict Date: Tue, 26 Nov 2024 12:52:24 +0300 Subject: [PATCH] Fix error creating releases with no tags --- .github/workflows/release.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0281554..7020233 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,16 +10,29 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v3 + - name: 🚚 + uses: actions/checkout@v4 + + - name: Set up Git + run: | + git config user.name "GitHub Actions" + git config user.email "actions@github.com" + + - name: Create a Tag + id: create_tag + run: | + TAG_NAME="v$(date +'%Y%m%d%H%M%S')" + echo "TAG_NAME=${TAG_NAME}" >> $GITHUB_ENV + git tag $TAG_NAME + git push origin $TAG_NAME - name: Zip Views - run: zip -r app.zip views/* + run: cd views && zip -r app.zip . - name: Create GitHub Release uses: softprops/action-gh-release@v1 with: - files: app.zip + files: views/app.zip tag_name: ${{ env.TAG_NAME }} env: