Skip to content

v0.0.26

v0.0.26 #49

Workflow file for this run

name: Release
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Get version
id: get_version
uses: battila7/get-version-action@v2
- run: yarn install
- run: yarn build
- name: Change version
run: |
sed -i -e "s/\"version\": \".*\"/\"version\": \"${{ steps.get_version.outputs.version-without-v }}\"/" manifest.json
sed -i -e "s/\"version\": \".*\"/\"version\": \"${{ steps.get_version.outputs.version-without-v }}\"/" manifest.firefox.json
- name: Package chrome plugin
run: |
mkdir -p release/writely
mv dist release/writely
mv manifest.json release/writely
cd release/writely
zip -r ../writely-chrome-${{ steps.get_version.outputs.version-without-v }}.zip *
- name: Upload plugin to release
uses: svenstaro/upload-release-action@v2
with:
release_name: ${{ steps.get_version.outputs.version }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: release/writely-chrome-${{ steps.get_version.outputs.version-without-v }}.zip
asset_name: writely-chrome-${{ steps.get_version.outputs.version-without-v }}.zip
tag: ${{ github.ref }}
overwrite: true
body: ${{ steps.tag.outputs.message }}
- name: Package firefox plugin
run: |
rm -rf release/writely/manifest.json
mv manifest.firefox.json release/writely/manifest.json
cd release/writely
zip -r ../writely-firefox-${{ steps.get_version.outputs.version-without-v }}.zip *
- name: Upload plugin to release
uses: svenstaro/upload-release-action@v2
with:
release_name: ${{ steps.get_version.outputs.version }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: release/writely-firefox-${{ steps.get_version.outputs.version-without-v }}.zip
asset_name: writely-firefox-${{ steps.get_version.outputs.version-without-v }}.zip
tag: ${{ github.ref }}
overwrite: true
body: ${{ steps.tag.outputs.message }}