Skip to content

Commit

Permalink
use upload-artifact to zip addon folder
Browse files Browse the repository at this point in the history
  • Loading branch information
onemen committed Mar 5, 2024
1 parent c72cf85 commit 9e1776d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,17 @@ jobs:

- name: Set XPI file name
run: |
echo "XPI_NAME=tabmix-dev-build-${{ env.VERSION }}-${{ env.DATE }}.xpi" >> $GITHUB_ENV
echo "XPI_NAME=tabmix-dev-build-${{ env.VERSION }}-${{ env.DATE }}" >> $GITHUB_ENV
- name: Replace version in install.rdf
run: |
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/*

- name: Upload XPI to Release
uses: actions/upload-artifact@v4
with:
name: ${{ env.XPI_NAME }}
path: ${{ env.XPI_NAME }}
if-no-files-found: error
path: addon/

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

0 comments on commit 9e1776d

Please sign in to comment.