chore(master): release 0.5.0 (#195) #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
uses: ./.github/workflows/build.yml | |
release: | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: google-github-actions/release-please-action@v3 | |
id: release | |
with: | |
command: manifest | |
- uses: actions/download-artifact@v3 | |
with: | |
name: dist | |
path: dist | |
if: ${{ steps.release.outputs.release_created }} | |
- name: Upload to GitHub Releases | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TAG_NAME: ${{ steps.release.outputs.tag_name }} | |
run: | | |
gh release upload ${TAG_NAME} \ | |
dist/vimmatic_${TAG_NAME}_chrome.zip \ | |
dist/vimmatic_${TAG_NAME}_firefox.zip | |
if: ${{ steps.release.outputs.release_created }} | |
- name: Create source archive | |
env: | |
TAG_NAME: ${{ steps.release.outputs.tag_name }} | |
run: | | |
git archive --format=zip HEAD --output dist/vimmatic_${TAG_NAME}_source.zip | |
if: ${{ steps.release.outputs.release_created }} | |
- uses: browser-actions/release-firefox-addon@latest | |
with: | |
addon-id: "vimmatic" | |
addon-path: "dist/vimmatic_${{ steps.release.outputs.tag_name }}_firefox.zip" | |
source-path: "dist/vimmatic_${{ steps.release.outputs.tag_name }}_source.zip" | |
approval-note: | | |
You can get generated file simply by "yarn install && yarn build". | |
Supported environment is node v18 and yarn v1. After that, bundled | |
scripts and assets with manifest.json are generated under | |
"$PROJECT_ROOT/dist/firefox". | |
release-note: | | |
This versions contains some bug fixes. See full release note on GitHub: | |
https://github.com/ueokande/vimmatic/releases/tag/${{ steps.release.outputs.tag_name }} | |
compatibility-firefox-min: "102.0" | |
license: "MIT" | |
auth-api-issuer: ${{ secrets.AMO_AUTH_API_ISSUER }} | |
auth-api-secret: ${{ secrets.AMO_AUTH_API_SECRET }} | |
if: ${{ steps.release.outputs.release_created }} | |
- uses: browser-actions/release-chrome-extension@latest | |
with: | |
extension-id: "pghmfgnakhjiphmlcnhfpgopkcjhiedc" | |
extension-path: "dist/vimmatic_${{ steps.release.outputs.tag_name }}_chrome.zip" | |
oauth-client-id: ${{ secrets.CWS_OAUTH_CLIENT_ID }} | |
oauth-client-secret: ${{ secrets.CWS_OAUTH_CLIENT_SECRET }} | |
oauth-refresh-token: ${{ secrets.CWS_OAUTH_REFRESH_TOKEN }} | |
if: ${{ steps.release.outputs.release_created }} |