mirror of
https://github.com/ItsVipra/ProToots
synced 2024-11-22 11:33:03 +00:00
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
name: Prepare release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: "The version number to use for this release, should start with the 'v' prefix."
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Update package version
|
|
run: npm version from-git --no-git-tag-version
|
|
- uses: stefanzweifel/git-auto-commit-action@v4
|
|
name: Commit package version update
|
|
with:
|
|
commit_message: "Update to ${{ inputs.version }}"
|
|
file_pattern: "package*.json"
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
- name: Build packages
|
|
run: npm run package
|
|
|
|
# Create automatic draft release for pushes of tags, prefilled with all the important information.
|
|
# And since we have our files, let's attach them as well.
|
|
- name: Create GitHub Release
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
draft: true
|
|
tag_name: ${{ inputs.version }}
|
|
generate_release_notes: true
|
|
files: "web-ext-artifacts/*.zip"
|