Skip to content

Commit

Permalink
0.2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
jewels86 committed Jan 26, 2025
1 parent d9b4ebd commit 2887b99
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 30 deletions.
70 changes: 41 additions & 29 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,32 +47,44 @@ jobs:
dist/Topaz-linux.zip
dist/Topaz-mac.zip
release:
needs: build
strategy:
matrix:
platform: [win, linux, mac]
runs-on: ubuntu-latest
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Release of version ${{ github.ref }}.
draft: false
prerelease: false

- name: Upload Release Assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/Topaz-${{ matrix.platform }}.zip
asset_name: Topaz-${{ matrix.platform }}.zip
asset_content_type: application/zip
release:
needs: build
strategy:
matrix:
platform: [win, linux, mac]
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Get Release ID
id: get_release
run: |
release_id=$(gh release view ${{ github.ref }} --json id --jq '.id' || echo "")
echo "release_id=$release_id" >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release if Not Exists
if: env.release_id == ""
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Release of version ${{ github.ref }}.
draft: false
prerelease: false
- name: Upload Release Assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url || steps.get_release.outputs.upload_url }}
asset_path: dist/Topaz-${{ matrix.platform }}.zip
asset_name: Topaz-${{ matrix.platform }}.zip
asset_content_type: application/zip
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "topaz",
"version": "0.2.10",
"version": "0.2.11",
"description": "Seamlessly integrate your work and life with one powerful platform.",
"main": "main.js",
"devDependencies": {
Expand Down

0 comments on commit 2887b99

Please sign in to comment.