-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use pushed tag instead of increment + other fixes
- Loading branch information
jdev082
committed
Jan 25, 2024
1 parent
1bad7f3
commit 213b390
Showing
1 changed file
with
9 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,8 @@ name: Build | |
|
||
on: | ||
push: | ||
paths: | ||
- 'main.py' | ||
- '.github/workflows/build.yml' | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
build-linux: | ||
|
@@ -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 }} |