Skip to content

Commit

Permalink
Exclude test files from releases
Browse files Browse the repository at this point in the history
  • Loading branch information
xiwenc committed Sep 16, 2024
1 parent 3431f70 commit ec3a45e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
- uses: actions/checkout@v4

- name: Zip rules directory
run: zip -r rules.zip rules/
run: zip -r rules.zip rules/ -x '*_test.rego'

- name: Create Tar.gz of rules directory
run: tar -czvf rules.tar.gz rules/
run: tar -czvf rules.tar.gz --exclude='*_test.rego' rules/

- name: Get release
id: get_release
Expand All @@ -41,4 +41,4 @@ jobs:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./rules.tar.gz
asset_name: rules-${{ steps.get_release.outputs.tag_name}}.tar.gz
asset_content_type: application/gzip
asset_content_type: application/gzip

0 comments on commit ec3a45e

Please sign in to comment.