Skip to content

Commit

Permalink
update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
jonashoechst committed May 12, 2021
1 parent 759cadf commit 102d95b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ jobs:
uses: Nature40/[email protected]
with:
pifile: Base.Pifile
- name: Run tRackIT Pifile
- name: Run BatRack Pifile
uses: Nature40/[email protected]
with:
pifile: tRackIT.Pifile
pifile: BatRack.Pifile

- name: Set Release Version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Rename tRackIT Image
run: mv tRackIT.img tRackIT-${{ env.RELEASE_VERSION }}.img
- name: Package tRackIT.zip
run: zip tRackIT-${{ env.RELEASE_VERSION }}.zip tRackIT-${{ env.RELEASE_VERSION }}.img
- name: Rename BatRack Image
run: mv BatRack.img BatRack-${{ env.RELEASE_VERSION }}.img
- name: Package BatRack.zip
run: zip BatRack-${{ env.RELEASE_VERSION }}.zip BatRack-${{ env.RELEASE_VERSION }}.img
- name: Create GitHub release
id: create_release
uses: actions/[email protected]
Expand All @@ -40,13 +40,13 @@ jobs:
release_name: Release ${{ github.ref }}
draft: false
prerelease: true
- name: Upload tRackIT.zip to release
id: upload_trackit_zip
- name: Upload BatRack.zip to release
id: upload_batrack_zip
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: tRackIT-${{ env.RELEASE_VERSION }}.zip
asset_name: tRackIT-${{ env.RELEASE_VERSION }}.zip
asset_path: BatRack-${{ env.RELEASE_VERSION }}.zip
asset_name: BatRack-${{ env.RELEASE_VERSION }}.zip
asset_content_type: application/zip

0 comments on commit 102d95b

Please sign in to comment.