Skip to content

Commit

Permalink
A workflow to attach release artifact that piggybacks on the build
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed Jun 8, 2024
1 parent 6935085 commit a615dc5
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/RealAntennasProject.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RealAntennas", "RealAntenna
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "GitHub workflows", "GitHub workflows", "{6EB015BB-8C8E-4C5E-AB48-AA22A076DAA1}"
ProjectSection(SolutionItems) = preProject
attach-release-artifacts.yml = attach-release-artifacts.yml
..\.github\workflows\build.yml = ..\.github\workflows\build.yml
EndProjectSection
EndProject
Expand Down
32 changes: 32 additions & 0 deletions src/attach-release-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Attach Release Artifacts"

on:
release:
types: [published]

jobs:
attach-release-artifacts:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Download artifact
id: download-artifact
uses: dawidd6/action-download-artifact@v5
with:
commit: ${{GITHUB_SHA}}
name: RealAntennas

- name: Upload package to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./RealAntennas.zip
asset_name: RealSolarSystem_${{ github.event.release.tag_name }}.zip
asset_content_type: application/zip

0 comments on commit a615dc5

Please sign in to comment.