Skip to content

chore(master): release release-firefox-addon 0.2.0 (#17) #28

chore(master): release release-firefox-addon 0.2.0 (#17)

chore(master): release release-firefox-addon 0.2.0 (#17) #28

Workflow file for this run

name: Release
on:
push:
branches:
- master
jobs:
build:
uses: ./.github/workflows/build.yml
release:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
command: manifest
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: 'latest'
if: ${{ steps.release.outputs.release_created }}
- uses: actions/download-artifact@v4
with:
name: dist
if: ${{ steps.release.outputs.release_created }}
- name: Publish to GitHub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
major_version: ${{ steps.release.outputs.major }}
full_version: ${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}
tag_name: ${{ steps.release.outputs.tag_name }}
run: |
gpg --allow-secret-key-import --import <<< "${{ secrets.PRIVATE_SIGNING_KEY }}"
git remote set-url origin https://github-actions:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}
git config commit.gpgsign true
git config tag.gpgsign true
git config --global user.name ueokande
git config --global user.email [email protected]
git config --global user.signingkey 7F94715D031FDE95
git add .
git commit --allow-empty --message "Release v${full_version} at ${GITHUB_SHA}"
git tag -d v$major_version || true
git tag -d v$full_version || true
git tag -a v$major_version -m "Release v$full_version"
git tag -a v$full_version -m "Release v$full_version"
git push origin latest
git push origin v$major_version --force
git push origin v$full_version
git tag -a $tag_name $GITHUB_SHA -m "Release v$full_version"
git push origin $tag_name
if: ${{ steps.release.outputs.release_created }}