Merge remote-tracking branch 'pve/master'
Some checks failed
Build / Build Launcher (push) Failing after 2m11s
Some checks failed
Build / Build Launcher (push) Failing after 2m11s
This commit is contained in:
36
.github/workflows/build.yml
vendored
36
.github/workflows/build.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
dotnet-version: '8.0.x'
|
dotnet-version: '8.0.x'
|
||||||
|
|
||||||
- run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
|
- run: dotnet nuget add source --name yandex-cloud https://nuget.storage.yandexcloud.net/index.json
|
||||||
name: Add nuget source
|
name: Add nuget source
|
||||||
|
|
||||||
- run: dotnet restore CringeLauncher/CringeLauncher.csproj --locked-mode
|
- run: dotnet restore CringeLauncher/CringeLauncher.csproj --locked-mode
|
||||||
@@ -26,7 +26,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Git Version
|
- name: Git Version
|
||||||
id: version
|
id: version
|
||||||
uses: codacy/git-version@2.7.1
|
uses: paulhatch/semantic-version@v5.3.0
|
||||||
|
with:
|
||||||
|
tag_prefix: ''
|
||||||
|
major_pattern: 'breaking:'
|
||||||
|
minor_pattern: 'feature:'
|
||||||
|
|
||||||
- run: dotnet publish -c Release -o ./pub CringeLauncher/CringeLauncher.csproj --no-restore -p:Version="${{ steps.version.outputs.version }}" -r win-x64 --no-self-contained
|
- run: dotnet publish -c Release -o ./pub CringeLauncher/CringeLauncher.csproj --no-restore -p:Version="${{ steps.version.outputs.version }}" -r win-x64 --no-self-contained
|
||||||
id: publish
|
id: publish
|
||||||
@@ -38,28 +42,12 @@ jobs:
|
|||||||
working-directory: ./pub
|
working-directory: ./pub
|
||||||
name: Zip Results
|
name: Zip Results
|
||||||
|
|
||||||
- name: Create Draft Release
|
- name: Create Release
|
||||||
id: create_release
|
uses: akkuman/gitea-release-action@v1
|
||||||
uses: actions/create-release@v1
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ steps.version.outputs.version }}
|
tag_name: ${{ steps.version.outputs.version }}
|
||||||
release_name: Launcher Release
|
name: Launcher Release ${{ steps.version.outputs.version }}
|
||||||
draft: true
|
files: |-
|
||||||
prerelease: false
|
./pub.zip
|
||||||
|
|
||||||
- uses: actions/upload-release-asset@v1.0.1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ./pub.zip
|
|
||||||
asset_name: CringeLauncher.zip
|
|
||||||
asset_content_type: application/zip
|
|
||||||
|
|
||||||
- uses: eregon/publish-release@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
release_id: ${{ steps.create_release.outputs.id }}
|
|
||||||
|
Reference in New Issue
Block a user