summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/release.yml37
1 files changed, 31 insertions, 6 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml

index 836c4240..a0f48868 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml
@@ -17,7 +17,7 @@ jobs: - name: Extract version id: extract_version uses: Saionaro/extract-package-version@v1.0.6 - - name: Build # This would actually build your project, using zip for an example artifact + - name: Build run: | npm install npm run bundle @@ -27,17 +27,42 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ steps.extract_version.outputs.version }} + tag_name: v${{ steps.extract_version.outputs.version }} release_name: Release ${{ steps.extract_version.outputs.version }} draft: true - prerelease: true - - name: Upload Release Asset + prerelease: true # TODO: change this to false + - name: Upload Release Linux 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 + upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./build/api-linux - asset_name: server-api-linux + asset_name: fosscord-api-linux asset_content_type: application/x-binary + - name: Upload Release MacOS + 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 }} + asset_path: ./build/api-macos + asset_name: fosscord-api-macos + asset_content_type: application/x-binary + - name: Upload Release Windows + 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 }} + asset_path: ./build/api-win + asset_name: fosscord-api-windows.exe + asset_content_type: application/x-binary + - uses: eregon/publish-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + release_id: ${{ steps.create_release.outputs.id }}