This commit is contained in:
@@ -0,0 +1,36 @@
|
|||||||
|
name: On-Site VTT - Develop
|
||||||
|
run-name: Run on ${{ github.ref }}
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- develop
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Get current date
|
||||||
|
id: date
|
||||||
|
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
|
||||||
|
- 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:
|
||||||
|
files: |-
|
||||||
|
on-site-vtt/**
|
||||||
|
api_key: "${{secrets.RELEASE_TOKEN}}"
|
||||||
|
|||||||
Reference in New Issue
Block a user