Skip to content

Commit

Permalink
add release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Azukimochi authored Jun 18, 2023
1 parent 5ca5920 commit 37360fa
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build Release

on:
workflow_dispatch:

env:
packageName: "io.github.azukimochi.bone-renamer"

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v3

- name: get version
id: version
uses: notiz-dev/github-action-json-property@7c8cf5cc36eb85d8d287a8086a39dac59628eb31
with:
path: "package.json"
prop_path: "version"

- name: Set Environment Variables
run: |
echo "zipFile=${{ env.packageName }}-${{ steps.version.outputs.prop }}".zip >> $GITHUB_ENV
echo "unityPackage=${{ env.packageName }}-${{ steps.version.outputs.prop }}.unitypackage" >> $GITHUB_ENV
- name: Create Zip
uses: thedoctor0/zip-release@09336613be18a8208dfa66bd57efafd9e2685657
with:
type: "zip"
filename: "${{env.zipFile}}" # make the zip file two directories up, since we start two directories in above

- name: Make Release
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5
with:
tag_name: ${{ steps.version.outputs.prop }}
files: |
${{ env.zipFile }}
package.json

0 comments on commit 37360fa

Please sign in to comment.