Skip to content

Commit

Permalink
feat: use pushed tag instead of increment + other fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jdev082 committed Jan 25, 2024
1 parent 1bad7f3 commit 213b390
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ name: Build

on:
push:
paths:
- 'main.py'
- '.github/workflows/build.yml'
tags:
- "*"

jobs:
build-linux:
Expand Down Expand Up @@ -74,43 +73,35 @@ jobs:
name: river-linux
path: dist

- uses: reecetech/[email protected]
id: version
with:
scheme: semver
increment: patch

- name: Create release
id: release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.version.outputs.version }}
release_name: Release ${{ steps.version.outputs.version }}
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
draft: false
prerelease: false

- name: Upload builds
- name: Upload WIN
id: upload-release-asset
uses: sekwah41/upload-release-assets@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_path: 'dist/main.exe'
asset_name: "main.exe"
asset_name: "catalyst5.exe"
asset_content_type: application/zip
upload_url: ${{ steps.release.outputs.upload_url }}

- name: Oh upload this too
- name: Upload NIX
id: upload-release-asset2
uses: sekwah41/upload-release-assets@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_path: 'dist/main'
asset_name: "main"
asset_name: "catalyst5"
asset_content_type: application/zip
upload_url: ${{ steps.release.outputs.upload_url }}

# run build action pls
upload_url: ${{ steps.release.outputs.upload_url }}

0 comments on commit 213b390

Please sign in to comment.