Files
On-Site-VTT/.gitea/workflows/release-on-develop.yml
Alexander 8c28884fcb
Some checks failed
On-Site VTT - Develop / build (push) Failing after 3m44s
Starting pipeline
2023-12-10 22:31:14 +01:00

43 lines
1.2 KiB
YAML

name: On-Site VTT - Develop
run-name: Run on ${{ github.ref }}
on:
push:
branches:
- develop
jobs:
build:
steps:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.20'
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- 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: dev-${{ steps.date.outputs.date }}-${{ github.run_number }}
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:
title: dev-${{ steps.date.outputs.date }}-${{ github.run_number }}
pre_release: true
api_key: "${{secrets.RELEASE_TOKEN}}"
files: |-
on-site-vtt/**