Starting pipeline

This commit is contained in:
Alexander
2023-12-10 22:01:34 +01:00
parent 6b998c6b7e
commit 6bef9a2030
3 changed files with 37 additions and 6 deletions

View File

View File

@@ -0,0 +1,31 @@
name: On-Site VTT - Release
run-name: Run for tag ${{ github.ref_name }} on ${{ github.ref }}
on:
push:
branches: [ main ]
tags: [0-9]+.[0-9]+.[0-9]+
jobs:
build:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Replace version in module.json
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "{{version}}"
replace: ${{ github.ref_name }}
include: "on-site-vtt/module.json"
- name: Replace branch in module.json
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "{{branch}}"
replace: ${{ github.ref }}
include: "on-site-vtt/module.json"
- name: Pack and release
uses: https://gitea.com/actions/release-action@main
with:
files: |-
on-site-vtt/**
api_key: '${{secrets.RELEASE_TOKEN}}'