Skip to content

Commit

Permalink
Change GH Release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacrlevin committed Oct 31, 2024
1 parent 1cc6cd1 commit d466126
Showing 1 changed file with 10 additions and 31 deletions.
41 changes: 10 additions & 31 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@latest
uses: actions/checkout@v4

- name: Fetch all tags
run: git fetch --tags
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@latest
uses: actions/checkout@v4

- name: Fetch all tags
run: git fetch --tags
Expand All @@ -142,17 +142,6 @@ jobs:
TAG: ${{ env.new_version }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create GitHub release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.new_version }}
release_name: Release ${{ env.new_version }}
draft: false
prerelease: false

- name: Download Chrome zip artifact
uses: actions/download-artifact@v4
with:
Expand All @@ -165,22 +154,12 @@ jobs:
name: built-firefox
path: .

- name: Upload Chrome zip to release
uses: actions/upload-release-asset@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: built-chrome.zip
asset_name: built-chrome.zip
asset_content_type: application/zip

- name: Upload Firefox zip to release
uses: actions/upload-release-asset@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: built-firefox.zip
asset_name: built-firefox.zip
asset_content_type: application/zip
tag_name: ${{ env.new_version }}
draft: false
prerelease: false
files: |
built-chrome.zip
built-firefox.zip

0 comments on commit d466126

Please sign in to comment.