Skip to content

Commit

Permalink
Don't put naughty paths in the zip, fixes google/fonts#6371
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Jun 16, 2023
1 parent 215db87 commit 79c9702
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,13 @@ jobs:
- name: Tell user about release
run: echo '::warning file=sources/config.yaml,title=A new release ${{ github.ref_name }} has been created'
- name: Find a DESCRIPTION.en_us.html
run: cp documentation/${{ steps.check_tag.outputs.family}}.html DESCRIPTION.en_us.html
run: cp documentation/${{ steps.check_tag.outputs.family}}.html fonts/DESCRIPTION.en_us.html
continue-on-error: true
- name: Find an ARTICLE.en_us.html
run: cp documentation/${{ steps.check_tag.outputs.family}}.article.html ARTICLE.en_us.html
run: cp documentation/${{ steps.check_tag.outputs.family}}.article.html fonts/ARTICLE.en_us.html
continue-on-error: true
- name: Create release bundle
run: cd fonts; zip -x requirements.txt -r ../${{ github.ref_name }}.zip ${{ steps.check_tag.outputs.family}}/ ../*.txt ../DESCRIPTION.en_us.html ../ARTICLE.en_us.html
run: cd fonts; cp ../*.txt . ; zip -x requirements.txt -r ../${{ github.ref_name }}.zip ${{ steps.check_tag.outputs.family}}/ *.txt DESCRIPTION.en_us.html ARTICLE.en_us.html
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
id: upload
Expand Down

0 comments on commit 79c9702

Please sign in to comment.