mirror of
https://github.com/ItsVipra/ProToots
synced 2024-11-24 20:43:03 +00:00
Split up publish/release process
This commit is contained in:
parent
3fa73edddf
commit
8f261b480c
2 changed files with 39 additions and 5 deletions
|
@ -1,9 +1,12 @@
|
|||
name: Release
|
||||
name: Prepare release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*.*.*"
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: "The version number to use for this release, should start with the 'v' prefix."
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
package:
|
||||
|
@ -18,7 +21,7 @@ jobs:
|
|||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
name: Commit package version update
|
||||
with:
|
||||
commit_message: "Update to ${{ github.ref }}"
|
||||
commit_message: "Update to ${{ inputs.version }}"
|
||||
file_pattern: "package*.json"
|
||||
|
||||
- name: Install dependencies
|
||||
|
@ -32,6 +35,7 @@ jobs:
|
|||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
draft: true
|
||||
tag_name: ${{ inputs.version }}
|
||||
generate_release_notes: true
|
||||
files: "web-ext-artifacts/*.zip"
|
||||
|
30
.github/workflows/publish-extension.yml
vendored
Normal file
30
.github/workflows/publish-extension.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
name: Publish extension in stores
|
||||
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- released
|
||||
|
||||
jobs:
|
||||
firefox:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Download assets for release
|
||||
run: >
|
||||
gh release download ${{ github.ref }} --archive zip --dir assets --output source.zip
|
||||
gh release download ${{ github.ref }} --pattern "*firefox*" --dir assets
|
||||
- uses: browser-actions/release-firefox-addon@v0.1.3
|
||||
with:
|
||||
addon-id: "protoots"
|
||||
addon-path: "assets/protoots-firefox.zip"
|
||||
source-path: "assets/source.zip"
|
||||
approval-note: |
|
||||
The source code requires Node.js 18 or newer. To generate the source code, run:
|
||||
|
||||
npm ci
|
||||
npm run package
|
||||
|
||||
To check it's functionality, you can enable it on any Mastodon page, such as: https://mastodon.social/public
|
||||
license: OSL-3.0
|
||||
auth-api-issuer: ${{ secrets.FIREFOX_AUTH_API_ISSUER }}
|
||||
auth-api-secret: ${{ secrets.FIREFOX_AUTH_API_SECRET }}
|
Loading…
Reference in a new issue