Skip to content

Commit

Permalink
workflo(build): versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoudk1000 committed Nov 2, 2024
1 parent 7367c25 commit 7e0ede3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
run: npm install
- name: Install web-ext
run: npm install --global web-ext
- name: Extract version from manifest.json
id: get_version
run: |
version=$(jq -r '.version' manifest.json)
echo "version=$version" >> $GITHUB_ENV
- name: Inject environment variables into weather.js
run: |
sed -i 's/const key = "";/const key = "${{ secrets.KEY }}";/' js/weather.js
Expand All @@ -39,6 +44,7 @@ jobs:
- name: Release
uses: ncipollo/release-action@v1.14.0
with:
tag: ${{ env.version }}
artifacts: "web-ext-artifacts/*.xpi"
allowUpdates: true
replacesArtifacts: true
Expand Down

0 comments on commit 7e0ede3

Please sign in to comment.