Skip to content

Commit

Permalink
chore: Try to fix winget build
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed May 12, 2023
1 parent fb99bdb commit f69cc88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ jobs:
mv ./build/app-linux.asar.sha256 ./build/app-${{ steps.prepare_release.outputs.version }}-linux.asar.sha256
- name: Emit Version File
run: |
echo ${{ steps.prepare_release.outputs.version }}.${{ github.run_id }} > ./build/version
echo ${{ steps.prepare_release.outputs.version }}.${{ github.run_number }} > ./build/version
- name: Draft Release
id: create_release
uses: voxelum/create-release@xmcl
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,11 @@ jobs:
shell: powershell
steps:
- name: Download Releases
uses: robinraju/release-downloader@v1.7
uses: robinraju/release-downloader@v1.8
with:
repository: "voxelum/x-minecraft-launcher"
tag: ${{ github.event.release.tag_name }}
fileName: "version"
out-file-path: build
- uses: actions/github-script@v6
name: Get Release Version
id: version
Expand All @@ -83,7 +82,8 @@ jobs:
return '${{ github.event.release.tag_name }}'.substring(1);
- name: Update version env
run: |
echo "VERSION=$(cat ./build/version)" >> $GITHUB_ENV
cat ./version
echo "VERSION=$(cat ./version)" >> $GITHUB_ENV
- name: Create winget PR
run: |
iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
Expand Down

0 comments on commit f69cc88

Please sign in to comment.