Skip to content

Commit

Permalink
Merge pull request #32 from Goboolean/fix/virus
Browse files Browse the repository at this point in the history
zip 압축 로직 적용
  • Loading branch information
mulmuri authored Jun 13, 2024
2 parents 4b682b2 + 98ec36f commit f92b735
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- v*
workflow_dispatch:


jobs:
build:
strategy:
Expand Down Expand Up @@ -48,7 +47,7 @@ jobs:
echo "${{ secrets.ENV }}" > .env
- name: Build project
run: cargo make build-release
run: cargo make release

- name: Upload Release Asset
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -76,18 +75,16 @@ jobs:
release_name: ${{ github.ref }}
draft: false
prerelease: false
body: |
${{ github.event.head_commit.message }}

- name: Validation
run: ls
- name: Compress Asset
run: zip hts-connector.zip hts_connector.exe

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./hts_connector.exe
asset_name: hts-connector.exe
asset_path: ./hts-connector.zip
asset_name: hts-connector.zip
asset_content_type: application/octet-stream
2 changes: 1 addition & 1 deletion Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ args = [
"build",
]

[tasks.build-release]
[tasks.release]
command = "cargo"
args = [
"build",
Expand Down

0 comments on commit f92b735

Please sign in to comment.