Skip to content

Commit

Permalink
add the release tasks to the existing job
Browse files Browse the repository at this point in the history
  • Loading branch information
joekolodz committed Sep 8, 2021
1 parent 5ff25f0 commit e1c21e1
Showing 1 changed file with 26 additions and 28 deletions.
54 changes: 26 additions & 28 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,36 +36,34 @@ jobs:
- name: Create Setup
run: msbuild SierraHOTASSetup\SierraHOTASSetup.wixproj -m /p:Configuration=Release

- name: Upload setup file
- name: Upload setup file as artifact for this run
uses: actions/upload-artifact@v2
with:
name: SierraHOTAS-Release-1.0.0.0-Setup
path: SierraHOTASSetup\Installer

release:
name: Release installer
runs-on: windows-latest
needs: build
steps:
- name: Download installer
uses: actions/download-artifact@v2
with:
name: SierraHOTAS-Release-1.0.0.0-Setup
- name: Create release
id: create-new-release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ github.run_number }}
release_name: Release ${{ github.run_number }}
- name: Upload installer to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-new-release.outputs.upload_url }}
asset_path: SierraHOTAS-Release-1.0.0.0-Setup.zip
asset_name: SierraHOTAS-Setup.zip
asset_content_type: application/zip

- name: Download installer artifact
uses: actions/download-artifact@v2
with:
name: SierraHOTAS-Release-1.0.0.0-Setup

- name: Create release
id: create-new-release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ github.run_number }}
release_name: Release ${{ github.run_number }}

- name: Upload installer to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-new-release.outputs.upload_url }}
asset_path: SierraHOTAS-Release-1.0.0.0-Setup.zip
asset_name: SierraHOTAS-Setup.zip
asset_content_type: application/zip


0 comments on commit e1c21e1

Please sign in to comment.