From 004eb853d94d9a6791a72a40975fbab8c76b370c Mon Sep 17 00:00:00 2001 From: Dongxu Li Date: Sat, 9 Sep 2023 22:11:53 -0400 Subject: [PATCH] update assets --- .github/workflows/main.yml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e36990e5..f0df5f82 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ name: Librecad3 Builders jobs: linux: - name: Building LibreCAD3 on ubuntu runner + name: BuildLinux runs-on: ubuntu-latest steps: - name: Checkout @@ -41,7 +41,7 @@ jobs: # retention-days: 2 windows: - name: Building LibreCAD3 on windows runner + name: BuildWindows runs-on: windows-latest steps: @@ -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