This commit is contained in:
@@ -9,13 +9,17 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
steps:
|
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
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
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
|
- name: Replace version in module.json
|
||||||
uses: jacobtomlinson/gha-find-replace@v3
|
uses: jacobtomlinson/gha-find-replace@v3
|
||||||
with:
|
with:
|
||||||
@@ -31,6 +35,8 @@ jobs:
|
|||||||
- name: Pack and release
|
- name: Pack and release
|
||||||
uses: https://gitea.com/actions/release-action@main
|
uses: https://gitea.com/actions/release-action@main
|
||||||
with:
|
with:
|
||||||
|
title: dev-${{ steps.date.outputs.date }}-${{ github.run_number }}
|
||||||
|
pre_release: true
|
||||||
|
api_key: "${{secrets.RELEASE_TOKEN}}"
|
||||||
files: |-
|
files: |-
|
||||||
on-site-vtt/**
|
on-site-vtt/**
|
||||||
api_key: "${{secrets.RELEASE_TOKEN}}"
|
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
steps:
|
steps:
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: '1.20'
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
@@ -28,8 +32,10 @@ jobs:
|
|||||||
replace: ${{ github.ref }}
|
replace: ${{ github.ref }}
|
||||||
include: "on-site-vtt/module.json"
|
include: "on-site-vtt/module.json"
|
||||||
- name: Pack and release
|
- name: Pack and release
|
||||||
uses: https://gitea.com/actions/release-action@main
|
uses: actions/release-action@main
|
||||||
with:
|
with:
|
||||||
|
title: ${{ github.ref_name }}
|
||||||
|
pre_release: false
|
||||||
|
api_key: "${{secrets.RELEASE_TOKEN}}"
|
||||||
files: |-
|
files: |-
|
||||||
on-site-vtt/**
|
on-site-vtt/**
|
||||||
api_key: "${{secrets.RELEASE_TOKEN}}"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user