Skip to content

Commit

Permalink
ci: Add previous dat+idx file to new releases (#170)
Browse files Browse the repository at this point in the history
Closes #156.
  • Loading branch information
jmctune authored Feb 9, 2024
1 parent b330d69 commit ef51344
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
tag: ${{ env.CURRENT_TAG }}-dev
assets: '*.zip'

- name: Creating dev release
- name: Create dev release
if: startsWith(github.ref, 'refs/tags/v') != true
uses: softprops/action-gh-release@v1
with:
Expand Down Expand Up @@ -101,13 +101,23 @@ jobs:
git tag -f $NEW_TAG
git push --force origin $NEW_TAG
- name: Creating prod release
- name: Download previous release's dat/idx files
if: startsWith(github.ref, 'refs/tags/v')
run: |
curl -LO https://github.com/dqx-translation-project/dqxclarity/releases/download/${{ env.CURRENT_TAG }}/data00000000.win32.dat1
curl -LO https://github.com/dqx-translation-project/dqxclarity/releases/download/${{ env.CURRENT_TAG }}/data00000000.win32.idx
- name: Create prod release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
with:
files: dqxclarity.zip
files: |
dqxclarity.zip
data00000000.win32.dat1
data00000000.win32.idx
prerelease: false
draft: false
tag_name: ${{ github.ref }}
name: 'Release: ${{ env.NEW_TAG }}' # github.ref does not trim refs/tags/ when used here
generate_release_notes: true
fail_on_unmatched_files: false

0 comments on commit ef51344

Please sign in to comment.