aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorDarius Jahandarie <djahandarie@gmail.com>2023-04-09 13:45:59 +0900
committerGitHub <noreply@github.com>2023-04-09 13:45:59 +0900
commit9d556f69349a8dec69442656ad21679212a42a9c (patch)
tree0d72b9d304af84a5e461b0e63a23900d642dd861 /.github/workflows
parente8c62d65aab6a37ab988b135dead0f580ca0eb0b (diff)
parentf776fa8cae201f960d83af3781a34a85857b6aae (diff)
Merge pull request #125 from themoeway/fix-firefox-dev-upload-url
fix publish-firefox-development's upload_url for xpi
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/create-prerelease-on-tag.yml2
-rw-r--r--.github/workflows/publish-firefox-development.yml6
2 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/create-prerelease-on-tag.yml b/.github/workflows/create-prerelease-on-tag.yml
index 3d749c58..06cb8c7e 100644
--- a/.github/workflows/create-prerelease-on-tag.yml
+++ b/.github/workflows/create-prerelease-on-tag.yml
@@ -25,6 +25,7 @@ jobs:
shell: bash
- name: Release
+ id: release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # pin@v0.1.15
with:
generate_release_notes: true
@@ -44,3 +45,4 @@ jobs:
workflow: publish-firefox-development
token: ${{ secrets.GITHUB_TOKEN }}
wait-for-completion: false
+ inputs: '{ "upload_url": "${{ steps.release.outputs.upload_url }}" }'
diff --git a/.github/workflows/publish-firefox-development.yml b/.github/workflows/publish-firefox-development.yml
index 6ce61dc5..2877a692 100644
--- a/.github/workflows/publish-firefox-development.yml
+++ b/.github/workflows/publish-firefox-development.yml
@@ -5,6 +5,10 @@
name: publish-firefox-development
on:
workflow_dispatch:
+ inputs:
+ upload_url:
+ description: "The upload_url from the release created by create-prerelease-on-tag.yml"
+ required: true
permissions:
contents: read
jobs:
@@ -44,7 +48,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
- upload_url: ${{ github.event.release.upload_url }}
+ upload_url: ${{ inputs.upload_url }}
asset_path: yomitan-firefox.xpi
asset_name: yomitan-firefox.xpi
asset_content_type: application/x-xpinstall