Skip to content

Commit

Permalink
Use hub for release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAProton authored Apr 5, 2023
1 parent 640e04b commit 78134ef
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,7 @@ jobs:
- name: Sign for Firefox
run: npx web-ext sign --channel=unlisted --source-dir ./build/FastForward.firefox --api-key ${{ secrets.FIREFOX_API_KEY }} --api-secret ${{ secrets.FIREFOX_API_SECRET }}

- name: Tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.email "git@fastforward.team"
git config --global user.name "FastForward Team"
git tag -a ${{ github.event.inputs.version }} -m "Version ${{ github.event.inputs.version }}"
git push origin ${{ github.event.inputs.version }}
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
web-ext-artifacts/*.xpi
build/dist/FastForward_chromium*
run: |
export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
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 comments on commit 78134ef

Please sign in to comment.