Skip to content

Commit

Permalink
Fix error creating releases with no tags
Browse files Browse the repository at this point in the history
  • Loading branch information
BaharaJr committed Nov 26, 2024
1 parent f06186f commit bba9f47
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
- 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:
Expand Down

0 comments on commit bba9f47

Please sign in to comment.