Skip to content

Commit

Permalink
ci: checkout code before running, fix filename and vrelease command
Browse files Browse the repository at this point in the history
  • Loading branch information
upsetbit committed Jan 23, 2022
1 parent e41feaa commit 26f82f6
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/release-many.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
runs-on: ubuntu-latest
needs: wait-build
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Download linux artifact
uses: dawidd6/action-download-artifact@v2
with:
Expand All @@ -43,22 +48,21 @@ jobs:
path: windows-artifact
workflow: build-many.yml

- name: Download vrelease
run: |
curl -L -o vrelease https://github.com/vrelease/vrelease/releases/download/v0.3.2/vrelease-macos
chmod +x vrelease
- name: Release new version
run:
run: |
export LINUX_ARTIFACT="lgs-linux-$TAG"
mv "linux-artifact/list-github-stars" "$LINUX_ARTIFACT"
export MACOS_ARTIFACT="lgs-macos-$TAG"
export WINDOWS_ARTIFACT="lgs-windows-$TAG"
mv "macos-artifact/list-github-stars" "$MACOS_ARTIFACT"
mv linux-artifact/list-github-stars "$LINUX_ARTIFACT"
mv macos-artifact/list-github-stars "$MACOS_ARTIFACT"
mv windows-artifact/list-github-stars.exe "$WINDOWS_ARTIFACT"
export WINDOWS_ARTIFACT="lgs-windows-$TAG.exe"
mv "windows-artifact/list-github-stars.exe" "$WINDOWS_ARTIFACT"
curl -L -o vrelease https://github.com/vrelease/vrelease/releases/download/v0.3.2/vrelease-linux
chmod +x vrelease
./vrelease
./vrelease \
-add-checksum \
-attach "$LINUX_ARTIFACT" \
-attach "$MACOS_ARTIFACT" \
Expand Down

0 comments on commit 26f82f6

Please sign in to comment.