Skip to content

Commit

Permalink
BDE-226 release zip files as part of the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nxmatic committed Mar 11, 2024
1 parent 6901122 commit 1b4d66d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ on:

jobs:
deploy:
permissions:
checks: write
contents: read
id-token: write
packages: write
pull-requests: write
statuses: write
runs-on:
- ${{ github.repository_owner != github.actor && 'ubuntu-latest' || 'self-hosted' }}

Expand All @@ -49,3 +56,31 @@ jobs:

- name: Build
run: pnpm build:chrome

- name: Zip the packages
run: |
pushd dist
zip -r chrome.zip chrome
popd
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/chrome.zip
asset_name: chrome.zip
asset_content_type: application/zip

0 comments on commit 1b4d66d

Please sign in to comment.