Skip to content

Commit

Permalink
cli p200
Browse files Browse the repository at this point in the history
  • Loading branch information
akalitenya committed Dec 28, 2022
1 parent 458bc60 commit 1f7cf83
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build-mprove-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ jobs:
pacx: |
yarn pacx:mcli
yarn shx mv dist/bin/mp mprove
tar czf "mprove-linux-${{ github.sha }}.tgz" "mprove"
artifact: mprove-linux-${{ github.sha }}.tgz
tar czf "mprove-cli-linux-${{ github.sha }}.tgz" "mprove"
artifact: mprove-cli-linux-${{ github.sha }}.tgz
- os: macos
build: yarn build:mcli
pacx: |
yarn pacx:mcli
yarn shx mv dist/bin/mp mprove
tar czf "mprove-macos-${{ github.sha }}.tgz" "mprove"
artifact: mprove-macos-${{ github.sha }}.tgz
tar czf "mprove-cli-macos-${{ github.sha }}.tgz" "mprove"
artifact: mprove-cli-macos-${{ github.sha }}.tgz
- os: windows
build: yarn build:mcli:win
pacx: |
yarn pacx:mcli:win
yarn shx mv dist/bin/mp.exe mprove-windows-${{ github.sha }}.exe
artifact: mprove-windows-${{ github.sha }}.exe
yarn shx mv dist/bin/mp.exe mprove-cli-windows-${{ github.sha }}.exe
artifact: mprove-cli-windows-${{ github.sha }}.exe
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -66,19 +66,19 @@ jobs:
steps:
- uses: actions/download-artifact@v3
with:
name: mprove-linux-${{ github.sha }}.tgz
name: mprove-cli-linux-${{ github.sha }}.tgz
- uses: actions/download-artifact@v3
with:
name: mprove-macos-${{ github.sha }}.tgz
name: mprove-cli-macos-${{ github.sha }}.tgz
- uses: actions/download-artifact@v3
with:
name: mprove-windows-${{ github.sha }}.exe
name: mprove-cli-windows-${{ github.sha }}.exe

- uses: softprops/action-gh-release@v1
with:
repository: mprove-io/mprove-files
token: ${{ secrets.MPROVE_FILES_GITHUB_TOKEN }}
files: |
mprove-linux-${{ github.sha }}.tgz
mprove-macos-${{ github.sha }}.tgz
mprove-windows-${{ github.sha }}.exe
mprove-cli-linux-${{ github.sha }}.tgz
mprove-cli-macos-${{ github.sha }}.tgz
mprove-cli-windows-${{ github.sha }}.exe
18 changes: 9 additions & 9 deletions .github/workflows/release-mprove-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@ jobs:

- uses: carlosperate/download-file-action@v2
with:
file-url: https://github.com/mprove-io/mprove-files/releases/download/t-${{ env.SHA_SHORT }}/mprove-linux-${{ github.sha }}.tgz
- run: mv mprove-linux-${{ github.sha }}.tgz mprove-linux-${{ github.ref_name }}.tgz
file-url: https://github.com/mprove-io/mprove-files/releases/download/t-${{ env.SHA_SHORT }}/mprove-cli-linux-${{ github.sha }}.tgz
- run: mv mprove-cli-linux-${{ github.sha }}.tgz mprove-cli-linux-${{ github.ref_name }}.tgz

- uses: carlosperate/download-file-action@v2
with:
file-url: https://github.com/mprove-io/mprove-files/releases/download/t-${{ env.SHA_SHORT }}/mprove-macos-${{ github.sha }}.tgz
- run: mv mprove-macos-${{ github.sha }}.tgz mprove-macos-${{ github.ref_name }}.tgz
file-url: https://github.com/mprove-io/mprove-files/releases/download/t-${{ env.SHA_SHORT }}/mprove-cli-macos-${{ github.sha }}.tgz
- run: mv mprove-cli-macos-${{ github.sha }}.tgz mprove-cli-macos-${{ github.ref_name }}.tgz

- uses: carlosperate/download-file-action@v2
with:
file-url: https://github.com/mprove-io/mprove-files/releases/download/t-${{ env.SHA_SHORT }}/mprove-windows-${{ github.sha }}.exe
- run: mv mprove-windows-${{ github.sha }}.exe mprove-windows-${{ github.ref_name }}.exe
file-url: https://github.com/mprove-io/mprove-files/releases/download/t-${{ env.SHA_SHORT }}/mprove-cli-windows-${{ github.sha }}.exe
- run: mv mprove-cli-windows-${{ github.sha }}.exe mprove-cli-windows-${{ github.ref_name }}.exe

- uses: softprops/action-gh-release@v1
with:
repository: mprove-io/mprove-files
token: ${{ secrets.MPROVE_FILES_GITHUB_TOKEN }}
files: |
mprove-linux-${{ github.ref_name }}.tgz
mprove-macos-${{ github.ref_name }}.tgz
mprove-windows-${{ github.ref_name }}.exe
mprove-cli-linux-${{ github.ref_name }}.tgz
mprove-cli-macos-${{ github.ref_name }}.tgz
mprove-cli-windows-${{ github.ref_name }}.exe

0 comments on commit 1f7cf83

Please sign in to comment.