Skip to content

Commit

Permalink
update release
Browse files Browse the repository at this point in the history
  • Loading branch information
KirisameMarisa committed Jan 6, 2024
1 parent a6e7e8c commit 68750d4
Showing 1 changed file with 53 additions and 30 deletions.
83 changes: 53 additions & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,48 +11,71 @@ permissions:
contents: read

jobs:
release:
create_draft_release:
permissions:
contents: write
pull-requests: write

runs-on: ubunth-latest

steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

upload_asset:
runs-on: windows-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v2

# - name: Set up .NET Core
# uses: actions/setup-dotnet@v7
# with:
# dotnet-version: '3.1'

# - name: Set up .NET Core
# uses: actions/setup-dotnet@v7
# with:
# dotnet-version: '3.1'
# - name: Build C# application
# run: dotnet build -c Release

# - name: Build C# application
# run: dotnet build -c Release
# - name: Archive application
# run: zip -r app.zip path/to/your/application

# - name: Archive application
# run: zip -r app.zip path/to/your/application
- name: Archive UnrealEngine plugin
run: Compress-Archive -Path "Plugins/UnrealEngine" -DestinationPath "UnrealEngine.zip"

- name: Archive UE plugin
run: Compress-Archive -Path "Plugins/UnrealEngine" -DestinationPath "UnrealEngine.zip"
- name: Archive Unity plugin
run: Compress-Archive -Path "Plugins/Unity" -DestinationPath "Unity.zip"

- name: Archive Unity plugin
run: Compress-Archive -Path "Plugins/Unity" -DestinationPath "Unity.zip"
- name: Archive Godot plugin
run: Compress-Archive -Path "Plugins/Godot" -DestinationPath "Godot.zip"

- name: Archive Godot plugin
run: Compress-Archive -Path "Plugins/Godot" -DestinationPath "Godot.zip"
- name: Upload UnrealEngine plugin
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-draft.outputs.upload_url }}
asset_path: ./UnrealEngine.zip
asset_name: UnrealEngine.zip
asset_content_type: application/zip

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: release-artifacts
path: |
UnrealEngine.zip
Unity.zip
Godot.zip
- name: Upload Unity plugin
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-draft.outputs.upload_url }}
asset_path: ./Unity.zip
asset_name: Unity.zip
asset_content_type: application/zip

- uses: release-drafter/release-drafter@v5
with:
config-name: release-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Godot plugin
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-draft.outputs.upload_url }}
asset_path: ./Godot.zip
asset_name: Godot.zip
asset_content_type: application/zip

0 comments on commit 68750d4

Please sign in to comment.