From e22f373c1b8cf3a3caa77c87d67c4cfd9021c83d Mon Sep 17 00:00:00 2001 From: ion098 <146852218+ion098@users.noreply.github.com> Date: Mon, 28 Oct 2024 11:20:52 -0700 Subject: [PATCH 1/2] ci: :green_heart: Upload template zip on build --- .github/workflows/pros-build.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pros-build.yml b/.github/workflows/pros-build.yml index 88566b5..d34f97d 100644 --- a/.github/workflows/pros-build.yml +++ b/.github/workflows/pros-build.yml @@ -12,7 +12,16 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: LemLib/pros-build@v2.0.2 + - name: Checkout Code + uses: actions/checkout@v4 + - name: Build Template + id: build_step + uses: LemLib/pros-build@v2.0.2 with: - library-path: gamepad + lib_folder_name: "gamepad" + copy_readme_and_license_to_include: true + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: ${{ steps.build_step.outputs.name }} + path: ${{ github.workspace }}/template/* From 640015551fab15d8adf15ad2350d8db12334f13f Mon Sep 17 00:00:00 2001 From: ion098 <146852218+ion098@users.noreply.github.com> Date: Mon, 28 Oct 2024 11:21:43 -0700 Subject: [PATCH 2/2] ci: :construction_worker: Build and upload template on release --- .github/workflows/pros-build-release.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/pros-build-release.yml diff --git a/.github/workflows/pros-build-release.yml b/.github/workflows/pros-build-release.yml new file mode 100644 index 0000000..301a532 --- /dev/null +++ b/.github/workflows/pros-build-release.yml @@ -0,0 +1,24 @@ +name: Build Release + +on: + release: + types: [published] + +jobs: + build-release: + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v4 + - name: Build Template + id: build_step + uses: LemLib/pros-build@v2.0.2 + with: + lib_folder_name: "gamepad" + copy_readme_and_license_to_include: true + no_commit_hash: true + - name: Upload Template To Release + uses: svenstaro/upload-release-action@v2 + with: + file: ${{ github.workspace }}/${{ steps.build_step.outputs.name }}