Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mirhmousavi committed Mar 19, 2024
1 parent 2c5b336 commit df97746
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled to generate the release tag
# Shallow clones should be disabled to generate the release tag
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
Expand All @@ -26,16 +27,10 @@ jobs:
gulp generic
- name: Create Release
run: tar czf build.tar.gz -C build .
- name: Create version tag. the tag is in format of v4-{number of commits}-{last commit id}
- name: Create version tag
run: |
TAG="$(git rev-list --count HEAD)-$(git rev-parse --short HEAD)"
echo "TAG=$TAG" >> $GITHUB_ENV
# - uses: "marvinpinto/action-automatic-releases@latest"
# with:
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
# prerelease: false
# automatic_release_tag: ${{ env.TAG }}
# files: "build.tar.gz"
- uses: ncipollo/release-action@v1
with:
artifacts: "build.tar.gz"
Expand Down

0 comments on commit df97746

Please sign in to comment.