Skip to content

Commit

Permalink
add job to create release and upload setup as zip
Browse files Browse the repository at this point in the history
  • Loading branch information
joekolodz authored Sep 7, 2021
1 parent 996af5c commit 2ceb366
Showing 1 changed file with 28 additions and 11 deletions.
39 changes: 28 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,31 @@ jobs:
with:
name: SierraHOTAS-Release-1.0.0.0-Setup
path: SierraHOTASSetup\Installer

- name: release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: test release
tag_name: ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ github.token }}

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
asset_name: SierraHOTAS-Setup.zip
asset_content_type: application/zip

0 comments on commit 2ceb366

Please sign in to comment.