Skip to content

Commit 78134ef

Browse files
authored
Use hub for release.yml
1 parent 640e04b commit 78134ef

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

.github/workflows/Release.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,7 @@ jobs:
3030
- name: Sign for Firefox
3131
run: npx web-ext sign --channel=unlisted --source-dir ./build/FastForward.firefox --api-key ${{ secrets.FIREFOX_API_KEY }} --api-secret ${{ secrets.FIREFOX_API_SECRET }}
3232

33-
- name: Tag
34-
env:
35-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36-
run: |
37-
git config --global user.email "[email protected]"
38-
git config --global user.name "FastForward Team"
39-
git tag -a ${{ github.event.inputs.version }} -m "Version ${{ github.event.inputs.version }}"
40-
git push origin ${{ github.event.inputs.version }}
41-
4233
- name: Release
43-
uses: softprops/action-gh-release@v1
44-
with:
45-
files: |
46-
web-ext-artifacts/*.xpi
47-
build/dist/FastForward_chromium*
34+
run: |
35+
export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
36+
hub release create -p -a "./web-ext-artifacts/fastforwardteam-${{ github.event.inputs.version }}.xpi#FastForward_Firefox" -a "./build/dist/FastForward_${{ github.event.inputs.version }}_chromium.crx#FastForward_Chromium" -m "Release ${{ github.event.inputs.version }}" ${{ github.event.inputs.version }}

0 commit comments

Comments
 (0)