Skip to content

Commit

Permalink
Merge pull request #200 from HunnySajid/feat/build-ci
Browse files Browse the repository at this point in the history
fix: remove dist folder
  • Loading branch information
HunnySajid authored Sep 23, 2024
2 parents 2140a98 + d23586c commit 1a9538e
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,23 @@ jobs:
cd dist
zip -r firefox.zip firefox/
- name: Get manifest version
id: manifest_version
run: |
version=$(cat manifest.json | jq -r .version)
echo "::set-output name=version::$version"
- name: Get short commit hash
id: commit_hash
run: |
short_hash=$(git rev-parse --short HEAD)
echo "::set-output name=short_hash::$short_hash"
- name: Upload build asset
uses: actions/upload-artifact@v4
with:
name: extension-builds-${{ github.event.number || github.event.head_commit.id }}
name: v${{ steps.manifest_version.outputs.version }}-${{ steps.commit_hash.outputs.short_hash }}
path: dist/*.zip

- name: Remove dist folder
run: rm -rf dist

0 comments on commit 1a9538e

Please sign in to comment.