Skip to content

Commit

Permalink
ci: fix release ci & upgrade step action
Browse files Browse the repository at this point in the history
  • Loading branch information
Misaka-L committed Oct 11, 2024
1 parent ff35bae commit f9d8e47
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/create-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ on:
value: ${{ jobs.create_package.outputs.version }}

jobs:
# Build and release the Package
# If the repository is not configured properly, this job will be skipped
create_package:
runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -62,13 +60,13 @@ jobs:
include-files: metaList

- name: Upload .unitypackage
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.unityPackage }}
path: ${{ env.unityPackage }}

- name: Upload .zip
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.zipFile }}
path: ${{ env.zipFile }}
Expand Down
18 changes: 16 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,21 @@ jobs:
env:
packagePath: src/Packages/${{ vars.PACKAGE_NAME }}
steps:
- name: Download Package Zip Artifacts
uses: actions/download-artifact@v4
with:
name: ${{ needs.create_package.outputs.zipArtifact }}

- name: Download Package UnityPackage Artifacts
uses: actions/download-artifact@v4
with:
name: ${{ needs.create_package.outputs.unityPackageArtifact }}

- name: Unzip Artifacts
run: |
unzip ${{ needs.create_package.outputs.zipArtifact }} -d ${{ env.packagePath }}
unzip ${{ needs.create_package.outputs.unityPackageArtifact }} -d ${{ env.packagePath }}
# Make a release tag of the version from the package.json file
- name: Create Tag
id: tag_version
Expand All @@ -28,6 +43,5 @@ jobs:
with:
generate_release_notes: true
files: |
${{ needs.create_package.outputs.zipArtifact }}
${{ needs.create_package.outputs.unityPackageArtifact }}
"${{ github.workspace }}/${{ env.packagePath }}/**/*"
tag_name: ${{ needs.create_package.outputs.version }}

0 comments on commit f9d8e47

Please sign in to comment.