Skip to content

Create release

Create release #9

Workflow file for this run

name: main
on:
push:
branches:
- main
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sudo apt install -y jq
- id: manifest-version
run: echo "version=$(jq -r '.version' src/manifest.json)" >> "$GITHUB_OUTPUT"
- run: zip -r "minimal-grey-chrome.${{ steps.manifest-version.outputs.version }}.zip" src
- run: |
git config user.name "GitHub Actions"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- run: git tag -a "${{ steps.manifest-version.outputs.version }}" -m "${{ steps.manifest-version.outputs.version }}"
- run: git push --follow-tags
- uses: actions/github-script@v6
env:
MANIFEST_VERSION: ${{ steps.manifest-version.outputs.version }}
with:
script: |
github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: process.env.MANIFEST_VERSION,
name: process.env.MANIFEST_VERSION
})