Skip to content

Commit

Permalink
workflow file token added.
Browse files Browse the repository at this point in the history
  • Loading branch information
faizananwerali committed Nov 15, 2023
1 parent 631184d commit df1435b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,16 @@ jobs:
GITHUB_TOKEN: ${{ secrets.WORKFLOWS_TOKEN }} # Use the secret here

# Upload assets (ZIP and CRX) to the release
- name: Upload assets
- name: Upload ZIP file
id: upload_assets
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/extension.zip # Replace with your ZIP file path
asset_name: extension-${{ steps.get_version.outputs.version }}.zip
asset_content_type: application/zip
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOWS_TOKEN }} # Use the secret here

- name: Upload CRX file
uses: actions/upload-release-asset@v1
Expand All @@ -60,3 +62,5 @@ jobs:
asset_path: ./build/extension.crx # Replace with your CRX file path
asset_name: extension-${{ steps.get_version.outputs.version }}.crx
asset_content_type: application/octet-stream # Adjust content type if needed
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOWS_TOKEN }} # Use the secret here

0 comments on commit df1435b

Please sign in to comment.