Skip to content

Commit

Permalink
Updated the ci/cd with creating a github release
Browse files Browse the repository at this point in the history
  • Loading branch information
bottiger committed Jun 26, 2024
1 parent 5683e47 commit 8e16253
Showing 1 changed file with 19 additions and 25 deletions.
44 changes: 19 additions & 25 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ jobs:
release:
runs-on: ubuntu-latest
needs: build # Ensure the build job completes first

if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: "Checkout"
Expand All @@ -58,28 +57,23 @@ jobs:
apiSecret: ${{ secrets.AMO_SIGN_SECRET }}
timeout: 900000

# - name: "Upload Artifact"
# uses: actions/upload-artifact@v4
# with:
# name: {name}-{version}.xpi
# path: ${{ steps.web-ext-build.outputs.target }}
# if-no-files-found: error
- name: "Create GitHub Release"
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: "Release ${{ github.ref }}"
draft: false
prerelease: false

# release:
# needs: build
# name: "Release"
# runs-on: ubuntu-latest
# steps:
# - name: "Download Artifact"
# uses: actions/download-artifact@v3
# with:
# name: {name}-{version}.xpi
# path: dist
#
# - name: "Create Release"
# uses: softprops/action-gh-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# files: ./dist/*
# tag_name: ${{ github.ref_name }}
- name: "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: ${{ steps.web-ext-build.outputs.target }}
asset_name: "{name}-{version}.xpi"
asset_content_type: application/x-xpinstall

0 comments on commit 8e16253

Please sign in to comment.