Skip to content

Commit

Permalink
Updated build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsRiprod committed Jul 29, 2024
1 parent 6ff4079 commit 8dfcf1b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,24 +83,28 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Download artifacts
- name: Download artifacts for Windows
uses: actions/download-artifact@v3
with:
name: DeskThing-ubuntu-latest
path: ./dist/ubuntu
- uses: actions/download-artifact@v3
name: DeskThing-windows-${{ steps.get_version.outputs.VERSION }}
path: ./dist/windows

- name: Download artifacts for macOS
uses: actions/download-artifact@v3
with:
name: DeskThing-macos-latest
name: DeskThing-macos-${{ steps.get_version.outputs.VERSION }}
path: ./dist/macos
- uses: actions/download-artifact@v3

- name: Download artifacts for Linux
uses: actions/download-artifact@v3
with:
name: DeskThing-windows-latest
path: ./dist/windows
name: DeskThing-linux-${{ steps.get_version.outputs.VERSION }}
path: ./dist/linux

- name: Check for existing release
id: release_check
run: |
TAG_NAME=$(git describe --tags --exact-match ${{ github.sha }})
TAG_NAME=$(git describe --tags --exact-match ${{ github.sha }} || echo '')
echo "::set-output name=tag_name::${TAG_NAME}"
- name: Create or update release
Expand All @@ -110,9 +114,9 @@ jobs:
with:
tag_name: ${{ steps.release_check.outputs.tag_name }}
files: |
./dist/ubuntu/*
./dist/macos/*
./dist/windows/*
./dist/windows/*.exe
./dist/macos/*.dmg
./dist/linux/*.AppImage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -121,8 +125,8 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: |
./dist/ubuntu/*
./dist/macos/*
./dist/windows/*
./dist/windows/*.exe
./dist/macos/*.dmg
./dist/linux/*.AppImage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Binary file removed wrench.png
Binary file not shown.

0 comments on commit 8dfcf1b

Please sign in to comment.