From c18dc98d8ea58145741fa524847dda1e135b3e0c Mon Sep 17 00:00:00 2001 From: Alexander Date: Sun, 10 Dec 2023 22:15:11 +0100 Subject: [PATCH] Starting pipeline --- .gitea/workflows/release-on-develop.yml | 36 +++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.gitea/workflows/release-on-develop.yml b/.gitea/workflows/release-on-develop.yml index e69de29..3864fcc 100644 --- a/.gitea/workflows/release-on-develop.yml +++ b/.gitea/workflows/release-on-develop.yml @@ -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}}"