31 lines
865 B
YAML
31 lines
865 B
YAML
name: Release
|
|
on: [workflow_dispatch]
|
|
|
|
permissions:
|
|
contents: read # for checkout
|
|
|
|
jobs:
|
|
release:
|
|
name: Release
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write # to be able to publish a GitHub release
|
|
issues: write # to be able to comment on released issues
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "lts/*"
|
|
|
|
- name: Setup git
|
|
run: 'git config --global user.name "CI Bot" && git config --global user.email "ci@bjornp.com"'
|
|
|
|
- name: Run commit and tag
|
|
run: npx commit-and-tag-version
|
|
|
|
- name: Publishing release
|
|
run: git remote set-url origin https://bjorn:$GITEA_TOKEN@git.bjornp.com/bjorn/factorio-prometheus-exporter.git \&& git push --follow-tags origin main
|