Skip to content

Commit

Permalink
Merge pull request #22 from LemLib/ci/fix-build-action
Browse files Browse the repository at this point in the history
👷 Update build action to upload template
  • Loading branch information
ion098 authored Oct 28, 2024
2 parents a1a8ae1 + 6400155 commit 0dc0a36
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pros-build-release.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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 }}
15 changes: 12 additions & 3 deletions .github/workflows/pros-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: LemLib/[email protected]
- name: Checkout Code
uses: actions/checkout@v4
- name: Build Template
id: build_step
uses: LemLib/[email protected]
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/*

0 comments on commit 0dc0a36

Please sign in to comment.