diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9ebd8d2..cc0d5b5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,9 @@ -name: Release +name: release on: - push: - tags: - - v* + release: + types: [published] + jobs: publish: name: Publish Release @@ -11,29 +11,7 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Get the version - id: get_version - run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} - - name: Create Artifact - run: | - zip -i **/*.lua mod.json -r VEManager . - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: ${{ github.ref }} - draft: false - prerelease: false - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 + - name: Publish to VUMM + uses: BF3RM/vumm-action@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./VEManager.zip - asset_name: VEManager-${{ steps.get_version.outputs.VERSION }}.zip - asset_content_type: application/zip \ No newline at end of file + VUMM_TOKEN: ${{ secrets.VUMM_TOKEN }} \ No newline at end of file