Skip to content

Commit

Permalink
try to fix xpi inside zip
Browse files Browse the repository at this point in the history
  • Loading branch information
onemen committed Mar 5, 2024
1 parent 524514a commit c72cf85
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Get latest tag version
id: get-version
run: |
version=$(git describe --abbrev=0 --tags)
version=$(git describe --abbrev=0 --tags | cut -c 2-)
echo "VERSION=$version" >> $GITHUB_ENV
- name: Generate 8-digit date
Expand All @@ -41,7 +41,7 @@ jobs:
- name: Replace version in install.rdf
run: |
sed -i "s/1.0.0-unbundeled/${{ env.VERSION }}-${{ env.DATE }}.xpi/" addon/install.rdf
sed -i "s/1.0.0-unbundeled/${{ env.VERSION }}-${{ env.DATE }}/" addon/install.rdf
- name: Zip addon folder
run: zip -r ${{ env.XPI_NAME }} addon/*
Expand All @@ -51,6 +51,7 @@ jobs:
with:
name: ${{ env.XPI_NAME }}
path: ${{ env.XPI_NAME }}
if-no-files-found: error

# - name: Create Release (optional)
# uses: ncipollo/release-action@v3
Expand Down

0 comments on commit c72cf85

Please sign in to comment.