Skip to content

Commit

Permalink
💚 fix: build and release
Browse files Browse the repository at this point in the history
  • Loading branch information
camargo2019 committed Sep 10, 2024
1 parent fac774c commit 4c82f1b
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,6 @@ jobs:
cp -r data/ release/
tar -czf cmr_cache_${{ matrix.os }}.tar.gz release
- name: Get the tag
run: echo "GITHUB_REF=${{ github.ref }}"

- name: Extract the tag name
id: extract_tag
run: echo "TAG_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV

- name: Create GitHub Release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.TAG_NAME }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release Archive - Others OS
if: matrix.os != 'windows-latest'
run: |
Expand All @@ -77,6 +62,13 @@ jobs:
cp -r data/ release/
tar -czf cmr_cache_${{ matrix.os }}-${{ env.TAG_NAME }}.tar.gz release
- name: Get the tag
run: echo "GITHUB_REF=${{ github.ref }}"

- name: Extract the tag name
id: extract_tag
run: echo "TAG_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV

- name: Create GitHub Release
id: create_release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 4c82f1b

Please sign in to comment.