Skip to content

Commit

Permalink
Github action debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jgressmann committed Oct 15, 2023
1 parent 91d86cc commit dee4953
Showing 1 changed file with 35 additions and 11 deletions.
46 changes: 35 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ jobs:
- name: Debugging
run: |
find ${{ steps.download.outputs.download-path }}
echo ${{ github.ref }}
echo ${{ github.ref_name }}
- name: Create release
id: create_release
Expand All @@ -250,15 +252,37 @@ jobs:
draft: true
prerelease: true

- name: Upload artifacts to release
uses: softprops/action-gh-release@v1
# - name: Upload artifacts to release
# uses: softprops/action-gh-release@v1
# with:
# # tag_name: ${{ github.ref_name }}
# # tag_name: ${{ github.ref }}
# # name: SuperCAN ${{ github.ref_name }}
# draft: true
# prerelease: true
# files: |
# ${{ steps.download.outputs.download-path }}/artifact/*
# ${{ steps.download.outputs.download-path }}/supercan.intoto.jsonl/supercan.intoto.jsonl
# body: ${{ github.ref_name }}

# - name: Upload Release Asset
# id: upload-release-asset
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
# asset_path: ./my-artifact.zip
# asset_name: my-artifact.zip
# asset_content_type: application/zip


- name: Upload firmware asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
# tag_name: ${{ github.ref_name }}
# tag_name: ${{ github.ref }}
# name: SuperCAN ${{ github.ref_name }}
draft: true
prerelease: true
files: |
${{ steps.download.outputs.download-path }}/artifact/*
${{ steps.download.outputs.download-path }}/supercan.intoto.jsonl/supercan.intoto.jsonl
body: ${{ github.ref_name }}
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifact/supercan-firmware.tar.xz
asset_name: supercan-firmware.tar.xz
# asset_content_type: application/zip

0 comments on commit dee4953

Please sign in to comment.