Skip to content

Commit

Permalink
Update release.yml mod release uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
nickynicolson authored Nov 29, 2023
1 parent 8785785 commit 8a1702a
Showing 1 changed file with 16 additions and 32 deletions.
48 changes: 16 additions & 32 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,46 +42,30 @@ jobs:
# draft: false
# prerelease: false

- name: Upload zip file
id: upload-zip
uses: actions/upload-release-asset@v1
- name: Update release with built artifacts (./${{ env.PLUGIN_NAME }}.zip)
uses: softprops/action-gh-release@v1
with:
files: ./${{ env.PLUGIN_NAME }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./${{ env.PLUGIN_NAME }}.zip
asset_name: ${{ env.PLUGIN_NAME }}-${{ steps.build.outputs.tag_name }}.zip
asset_content_type: application/zip

- name: Upload main.js
id: upload-main
uses: actions/upload-release-asset@v1
- name: Update release with built artifacts (main.js)
uses: softprops/action-gh-release@v1
with:
files: ./main.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./main.js
asset_name: main.js
asset_content_type: text/javascript

- name: Upload manifest.json
id: upload-manifest
uses: actions/upload-release-asset@v1
- name: Update release with built artifacts (manifest.json)
uses: softprops/action-gh-release@v1
with:
files: ./manifest.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./manifest.json
asset_name: manifest.json
asset_content_type: application/json

- name: Upload styles.css
id: upload-css
uses: actions/upload-release-asset@v1
- name: Update release with built artifacts (styles.css)
uses: softprops/action-gh-release@v1
with:
files: ./styles.css
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./styles.css
asset_name: styles.css
asset_content_type: text/css

0 comments on commit 8a1702a

Please sign in to comment.