This commit is contained in:
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@@ -30,6 +30,12 @@ jobs:
|
||||
- name: Build Project
|
||||
run: dotnet build --configuration Release SpotifyHonorific/SpotifyHonorific.csproj -p:AssemblyVersion=${{ github.ref_name }}
|
||||
|
||||
- name: Create Release Asset
|
||||
run: |
|
||||
cd SpotifyHonorific/bin/Release
|
||||
zip -r ../../../latest.zip .
|
||||
cd ../../..
|
||||
|
||||
- name: Create Release
|
||||
uses: actions/create-release@v1
|
||||
id: create_release
|
||||
@@ -45,7 +51,7 @@ jobs:
|
||||
run: |
|
||||
curl \
|
||||
-X POST \
|
||||
-H "Authorization: token ${{ gitea.token }}" \
|
||||
-H "Authorization: token ${{ github.token }}" \
|
||||
-H "Content-Type: application/zip" \
|
||||
--data-binary @SpotifyHonorific/bin/Release/SpotifyHonorific/latest.zip \
|
||||
--data-binary @latest.zip \
|
||||
"${{ steps.create_release.outputs.upload_url }}?name=latest.zip"
|
||||
Reference in New Issue
Block a user