Skip to content

Commit

Permalink
Publish releases via Github Actions (#1)
Browse files Browse the repository at this point in the history
* work on build ci

* okay i think that'll work

* okay move that up
  • Loading branch information
Absolucy committed Jan 30, 2025
1 parent 4598852 commit ac3c078
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Upload Build
uses: actions/upload-artifact@v4
with:
name: Windows Build
name: build-x86_64-pc-windows-msvc
path: target/x86_64-pc-windows-msvc/release/generate-icon-exists-cache.exe
build-linux:
name: Linux Build
Expand All @@ -43,6 +43,22 @@ jobs:
- name: Upload Build
uses: actions/upload-artifact@v4
with:
name: Linux Build
name: build-x86_64-unknown-linux-musl
path: target/x86_64-unknown-linux-musl/release/generate-icon-exists-cache

publish-release:
name: Publish Release
runs-on: ubuntu-latest
needs: [build-windows, build-linux]
if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write
steps:
- name: Download Previous Artifacts
uses: actions/download-artifact@v4
- name: Publish Release
uses: softprops/action-gh-release@v2
with:
fail_on_unmatched_files: true
files: |
build-x86_64-pc-windows-msvc/generate-icon-exists-cache.exe
build-x86_64-unknown-linux-musl/generate-icon-exists-cache

0 comments on commit ac3c078

Please sign in to comment.