Skip to content

Commit

Permalink
ci: fix zip package structure (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-bodnar authored Jan 8, 2024
1 parent 0d8fc63 commit b495968
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ jobs:
java -cp crowdin-cli-*.jar picocli.AutoComplete com.crowdin.cli.commands.picocli.RootCommand
- name: Build zip package
if: github.event_name == 'release'
run: |
mkdir crowdin-cli
mkdir ${{ github.ref_name }}
cp build/libs/crowdin-cli-*.jar crowdin-cli/crowdin-cli.jar
cp build/libs/crowdin_completion crowdin-cli/crowdin_completion
cp packages/zip/* crowdin-cli/
Expand All @@ -53,14 +54,15 @@ jobs:
- name: Generate shasum
id: shasum
if: github.event_name == 'release'
run: |
echo hash=$(shasum -a 256 crowdin-cli.zip | cut -f 1 -d " ") >> $GITHUB_OUTPUT
touch crowdin-cli_checksum.sha256
shasum -a 256 crowdin-cli.zip > crowdin-cli_checksum.sha256
- name: Generate version.txt file
run: |
echo ${{ github.ref_name }} > version.txt
if: github.event_name == 'release'
run: echo ${{ github.ref_name }} > version.txt

- name: Upload asset
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit b495968

Please sign in to comment.