Skip to content

Commit

Permalink
add release and tag to build
Browse files Browse the repository at this point in the history
  • Loading branch information
raphtlw committed Sep 23, 2020
1 parent 11acc01 commit 1bc01d2
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Create tag
id: create_tag
uses: Klemensas/action-autotag@stable
with:
GITHUB_TOKEN: ${{ github.token }}
tag_prefix: "v"
tag_suffix: "-alpha"
- name: Download artifact from previous job
uses: actions/download-artifact@v2
with:
Expand All @@ -51,17 +60,22 @@ jobs:
zip -r linux.zip deb/x64/*.deb rpm/x64/symbit*.rpm zip/linux/x64/*.zip
zip -r macos.zip zip/darwin/x64/*.zip *.dmg
zip -r windows.zip squirrel.windows/x64/*
- name: Get release
uses: bruceadams/get-release@v1.2.1
id: get_release
- name: Create release
uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ github.token }}
with:
tag_name: ${{ steps.create_tag.outputs.tagname }}
release_name: Symbit Alpha Release
draft: false
prerelease: false
- name: Upload linux package
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: linux.zip
asset_name: linux.zip
asset_content_type: application/zip
Expand All @@ -70,7 +84,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: macos.zip
asset_name: macos.zip
asset_content_type: application/zip
Expand All @@ -79,7 +93,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: windows.zip
asset_name: windows.zip
asset_content_type: application/zip

0 comments on commit 1bc01d2

Please sign in to comment.