Skip to content

Commit

Permalink
update assets
Browse files Browse the repository at this point in the history
  • Loading branch information
dxli committed Sep 10, 2023
1 parent 84a806d commit 004eb85
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: Librecad3 Builders

jobs:
linux:
name: Building LibreCAD3 on ubuntu runner
name: BuildLinux
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
# retention-days: 2

windows:
name: Building LibreCAD3 on windows runner
name: BuildWindows
runs-on: windows-latest
steps:

Expand Down Expand Up @@ -86,3 +86,26 @@ jobs:
with:
path: '${{ github.workspace }}/build/bin/LibreCAD3**.exe'
name: LibreCAD3.exe

UpdateAssets:
if: github.repository_owner == 'LibreCAD'
needs: [BuildLinux, BuildWindows]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Fetch artifacts
uses: actions/download-artifact@v3

- name: Upload latest pre-release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
title: "Continuous Build"
files: |
assets/LibreCAD*.*
LICENSE

0 comments on commit 004eb85

Please sign in to comment.