46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
on:
|
|
issues:
|
|
types:
|
|
- opened
|
|
|
|
jobs:
|
|
release:
|
|
if: github.event.issue.title == 'release'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
|
|
- name: setup node
|
|
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
|
|
with:
|
|
node-version: 20
|
|
|
|
- name: semantic release
|
|
shell: bash
|
|
env:
|
|
PROJECT_URL: ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}
|
|
run: |
|
|
npm install \
|
|
@saithodev/semantic-release-gitea \
|
|
conventional-changelog-conventionalcommits \
|
|
@semantic-release/git \
|
|
@semantic-release/changelog
|
|
|
|
npx semantic-release
|
|
|
|
# TODO extract dedicated action
|
|
- name: setup tea cli
|
|
shell: bash
|
|
env:
|
|
TEA_VERSION: 0.9.2
|
|
run: |
|
|
wget https://dl.gitea.com/tea/${TEA_VERSION}/tea-${TEA_VERSION}-linux-386
|
|
mv tea* tea
|
|
chmod +x tea
|
|
./tea login add --url ${{ github.server_url }} --token ${{ github.token }}
|
|
|
|
- name: close issue
|
|
shell: bash
|
|
run: |
|
|
./tea i close ${{ github.event.issue.number }}
|