Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Ramirez committed Aug 23, 2021
1 parent 1ed31ec commit 13c9e4d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:
if [ -d java-classes ]; then cp -r java-classes $PACKAGE_NAME; fi
if [ -d java-doc ]; then cp -r java-doc $PACKAGE_NAME; fi
if [ -d javascript ]; then cp -r javascript $PACKAGE_NAME; fi
if [ -d jsextensions ]; then cp -r jsextensions $PACKAGE_NAME; fi
if [ -d jsui ]; then cp -r jsui $PACKAGE_NAME; fi
if [ -d media ]; then cp -r media $PACKAGE_NAME; fi
if [ -d misc ]; then cp -r misc $PACKAGE_NAME; fi
Expand Down Expand Up @@ -112,10 +113,9 @@ jobs:
with:
submodules: 'recursive'
fetch-depth: '0'
- name: Get the version

- uses: battila7/get-version-action@v2
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

- uses: benjlevesque/[email protected]
id: short-sha
Expand All @@ -132,15 +132,15 @@ jobs:
working-directory: ${{ github.event.repository.name }}

- name: zip
run: zip -r ${{ github.event.repository.name }}-package-for-max-${{ steps.get_version.outputs.VERSION }}.zip ${{ github.event.repository.name }}
run: zip -r ${{ github.event.repository.name }}-package-for-max-${{ steps.get_version.outputs.version }}.zip ${{ github.event.repository.name }}

- uses: actions/upload-artifact@v2
with:
name: ${{ github.event.repository.name }}-${{ steps.get_version.outputs.VERSION }}-zipped-release
path: ${{ github.event.repository.name }}-package-for-max-${{ steps.get_version.outputs.VERSION }}.zip
name: ${{ github.event.repository.name }}-${{ steps.get_version.outputs.version }}-zipped-release
path: ${{ github.event.repository.name }}-package-for-max-${{ steps.get_version.outputs.version }}.zip

- uses: ncipollo/release-action@v1
with:
artifacts: ${{ github.event.repository.name }}-package-for-max-${{ steps.get_version.outputs.VERSION }}.zip
artifacts: ${{ github.event.repository.name }}-package-for-max-${{ steps.get_version.outputs.version }}.zip
body: "Max Package for all supported platforms"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 13c9e4d

Please sign in to comment.