Skip to content

Commit

Permalink
rename releases before uploading (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
sargeantPig authored Oct 23, 2023
1 parent 77d3a40 commit e443640
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 41 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/release-artifacts.yml

This file was deleted.

19 changes: 12 additions & 7 deletions .github/workflows/release-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
name: combined-release-workflow

env:
GH_TOKEN: ${{ github.token }}
Repo: "sargeantPig/RTWLibTools"

jobs:
Expand All @@ -30,13 +29,15 @@ jobs:

- name: Wait for 2 minutes
run: |
sleep 120 # Sleep for 2 minutes (2 minutes * 60 seconds/minute)
sleep 80 # Sleep for 80 seconds
shell: bash

- name: Publish Windows Build
if: ${{ steps.release.outputs.release_created }}
run: dotnet publish ${{github.workspace}}/RTWLib_CLI/RTWLib_CLI.csproj -c Release -r win-x64 --self-contained true -o ./publish/win-x64

run: |
dotnet publish ${{github.workspace}}/RTWLib_CLI/RTWLib_CLI.csproj -c Release -r win-x64 --self-contained true -o ./publish/win-x64
mv ./publish/win-x64/RTW-CLI-Randomiser.exe ./publish/win-x64/RTW-CLI-Randomiser-windows.exe
- name: Publish Windows Artifact
uses: actions/upload-artifact@v2
with:
Expand All @@ -45,7 +46,9 @@ jobs:

- name: Publish macOS Build
if: ${{ steps.release.outputs.release_created }}
run: dotnet publish ${{github.workspace}}/RTWLib_CLI/RTWLib_CLI.csproj -c Release -r osx-x64 --self-contained true -o ./publish/osx-x64
run: |
dotnet publish ${{github.workspace}}/RTWLib_CLI/RTWLib_CLI.csproj -c Release -r osx-x64 --self-contained true -o ./publish/osx-x64
mv ./publish/osx-x64/RTW-CLI-Randomiser ./publish/osx-x64/RTW-CLI-Randomiser-macOS
- name: Publish macOS Artifact
uses: actions/upload-artifact@v2
Expand All @@ -55,8 +58,10 @@ jobs:

- name: Publish Linux Build
if: ${{ steps.release.outputs.release_created }}
run: dotnet publish ${{github.workspace}}/RTWLib_CLI/RTWLib_CLI.csproj -c Release -r linux-x64 --self-contained true -o ./publish/linux-x64

run: |
dotnet publish ${{github.workspace}}/RTWLib_CLI/RTWLib_CLI.csproj -c Release -r linux-x64 --self-contained true -o ./publish/linux-x64
mv ./publish/linux-x64/RTW-CLI-Randomiser ./publish/linux-x64/RTW-CLI-Randomiser-linux
- name: Publish linux Artifact
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit e443640

Please sign in to comment.