mirror of
https://github.com/joaquinjsb/gitea-release-please-action
synced 2026-05-13 11:51:37 +02:00
chore: compile dist using workflow (#75)
This commit is contained in:
17
.github/workflows/release-please.yaml
vendored
17
.github/workflows/release-please.yaml
vendored
@@ -4,8 +4,24 @@ on:
|
|||||||
- main
|
- main
|
||||||
name: release-please
|
name: release-please
|
||||||
jobs:
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: install
|
||||||
|
run: npm install
|
||||||
|
- name: build
|
||||||
|
run: npm run build
|
||||||
|
- name: commit
|
||||||
|
run: |-
|
||||||
|
git config --global user.name "actions-bot"
|
||||||
|
git add dist/
|
||||||
|
git diff-index --quiet HEAD || git commit -m "chore: build dist"
|
||||||
|
git pull --rebase
|
||||||
|
git push origin main
|
||||||
release-please-pr:
|
release-please-pr:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
needs: [build]
|
||||||
steps:
|
steps:
|
||||||
- uses: GoogleCloudPlatform/release-please-action@v2.4.0
|
- uses: GoogleCloudPlatform/release-please-action@v2.4.0
|
||||||
with:
|
with:
|
||||||
@@ -16,6 +32,7 @@ jobs:
|
|||||||
command: release-pr
|
command: release-pr
|
||||||
release-please-release:
|
release-please-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
needs: [build]
|
||||||
steps:
|
steps:
|
||||||
- uses: GoogleCloudPlatform/release-please-action@v2.4.0
|
- uses: GoogleCloudPlatform/release-please-action@v2.4.0
|
||||||
with:
|
with:
|
||||||
|
|||||||
56
dist/commit.hbs
vendored
56
dist/commit.hbs
vendored
@@ -1,56 +0,0 @@
|
|||||||
* {{header}}
|
|
||||||
|
|
||||||
{{~!-- commit link --}} {{#if @root.linkReferences~}}
|
|
||||||
([{{hash}}](
|
|
||||||
{{~#if @root.repository}}
|
|
||||||
{{~#if @root.host}}
|
|
||||||
{{~@root.host}}/
|
|
||||||
{{~/if}}
|
|
||||||
{{~#if @root.owner}}
|
|
||||||
{{~@root.owner}}/
|
|
||||||
{{~/if}}
|
|
||||||
{{~@root.repository}}
|
|
||||||
{{~else}}
|
|
||||||
{{~@root.repoUrl}}
|
|
||||||
{{~/if}}/
|
|
||||||
{{~@root.commit}}/{{hash}}))
|
|
||||||
{{~else}}
|
|
||||||
{{~hash}}
|
|
||||||
{{~/if}}
|
|
||||||
|
|
||||||
{{~!-- commit references --}}
|
|
||||||
{{~#if references~}}
|
|
||||||
, closes
|
|
||||||
{{~#each references}} {{#if @root.linkReferences~}}
|
|
||||||
[
|
|
||||||
{{~#if this.owner}}
|
|
||||||
{{~this.owner}}/
|
|
||||||
{{~/if}}
|
|
||||||
{{~this.repository}}#{{this.issue}}](
|
|
||||||
{{~#if @root.repository}}
|
|
||||||
{{~#if @root.host}}
|
|
||||||
{{~@root.host}}/
|
|
||||||
{{~/if}}
|
|
||||||
{{~#if this.repository}}
|
|
||||||
{{~#if this.owner}}
|
|
||||||
{{~this.owner}}/
|
|
||||||
{{~/if}}
|
|
||||||
{{~this.repository}}
|
|
||||||
{{~else}}
|
|
||||||
{{~#if @root.owner}}
|
|
||||||
{{~@root.owner}}/
|
|
||||||
{{~/if}}
|
|
||||||
{{~@root.repository}}
|
|
||||||
{{~/if}}
|
|
||||||
{{~else}}
|
|
||||||
{{~@root.repoUrl}}
|
|
||||||
{{~/if}}/
|
|
||||||
{{~@root.issue}}/{{this.issue}})
|
|
||||||
{{~else}}
|
|
||||||
{{~#if this.owner}}
|
|
||||||
{{~this.owner}}/
|
|
||||||
{{~/if}}
|
|
||||||
{{~this.repository}}#{{this.issue}}
|
|
||||||
{{~/if}}{{/each}}
|
|
||||||
{{~/if}}
|
|
||||||
|
|
||||||
30
dist/commit1.hbs
vendored
30
dist/commit1.hbs
vendored
@@ -1,30 +0,0 @@
|
|||||||
*{{#if scope}} **{{scope}}:**
|
|
||||||
{{~/if}} {{#if subject}}
|
|
||||||
{{~subject}}
|
|
||||||
{{~else}}
|
|
||||||
{{~header}}
|
|
||||||
{{~/if}}
|
|
||||||
|
|
||||||
{{~!-- commit link --}}{{~#if hash}} {{#if @root.linkReferences~}}
|
|
||||||
([{{shortHash}}]({{commitUrlFormat}}))
|
|
||||||
{{~else}}
|
|
||||||
{{~shortHash}}
|
|
||||||
{{~/if}}{{~/if}}
|
|
||||||
|
|
||||||
{{~!-- commit references --}}
|
|
||||||
{{~#if references~}}
|
|
||||||
, closes
|
|
||||||
{{~#each references}} {{#if @root.linkReferences~}}
|
|
||||||
[
|
|
||||||
{{~#if this.owner}}
|
|
||||||
{{~this.owner}}/
|
|
||||||
{{~/if}}
|
|
||||||
{{~this.repository}}{{this.prefix}}{{this.issue}}]({{issueUrlFormat}})
|
|
||||||
{{~else}}
|
|
||||||
{{~#if this.owner}}
|
|
||||||
{{~this.owner}}/
|
|
||||||
{{~/if}}
|
|
||||||
{{~this.repository}}{{this.prefix}}{{this.issue}}
|
|
||||||
{{~/if}}{{/each}}
|
|
||||||
{{~/if}}
|
|
||||||
|
|
||||||
30
dist/commit2.hbs
vendored
30
dist/commit2.hbs
vendored
@@ -1,30 +0,0 @@
|
|||||||
*{{#if scope}} **{{scope}}:**
|
|
||||||
{{~/if}} {{#if subject}}
|
|
||||||
{{~subject}}
|
|
||||||
{{~else}}
|
|
||||||
{{~header}}
|
|
||||||
{{~/if}}
|
|
||||||
|
|
||||||
{{~!-- commit link --}} {{#if @root.linkReferences~}}
|
|
||||||
([{{shortHash}}]({{commitUrlFormat}}))
|
|
||||||
{{~else}}
|
|
||||||
{{~shortHash}}
|
|
||||||
{{~/if}}
|
|
||||||
|
|
||||||
{{~!-- commit references --}}
|
|
||||||
{{~#if references~}}
|
|
||||||
, closes
|
|
||||||
{{~#each references}} {{#if @root.linkReferences~}}
|
|
||||||
[
|
|
||||||
{{~#if this.owner}}
|
|
||||||
{{~this.owner}}/
|
|
||||||
{{~/if}}
|
|
||||||
{{~this.repository}}{{this.prefix}}{{this.issue}}]({{issueUrlFormat}})
|
|
||||||
{{~else}}
|
|
||||||
{{~#if this.owner}}
|
|
||||||
{{~this.owner}}/
|
|
||||||
{{~/if}}
|
|
||||||
{{~this.repository}}{{this.prefix}}{{this.issue}}
|
|
||||||
{{~/if}}{{/each}}
|
|
||||||
{{~/if}}
|
|
||||||
|
|
||||||
10
dist/footer.hbs
vendored
10
dist/footer.hbs
vendored
@@ -1,10 +0,0 @@
|
|||||||
{{#if noteGroups}}
|
|
||||||
{{#each noteGroups}}
|
|
||||||
|
|
||||||
### {{title}}
|
|
||||||
|
|
||||||
{{#each notes}}
|
|
||||||
* {{text}}
|
|
||||||
{{/each}}
|
|
||||||
{{/each}}
|
|
||||||
{{/if}}
|
|
||||||
0
dist/footer1.hbs
vendored
0
dist/footer1.hbs
vendored
9
dist/header.hbs
vendored
9
dist/header.hbs
vendored
@@ -1,9 +0,0 @@
|
|||||||
## {{#if isPatch~}} <small>
|
|
||||||
{{~/if~}} {{version}}
|
|
||||||
{{~#if title}} "{{title}}"
|
|
||||||
{{~/if~}}
|
|
||||||
{{~#if date}} ({{date}})
|
|
||||||
{{~/if~}}
|
|
||||||
{{~#if isPatch~}} </small>
|
|
||||||
{{~/if}}
|
|
||||||
|
|
||||||
13
dist/header1.hbs
vendored
13
dist/header1.hbs
vendored
@@ -1,13 +0,0 @@
|
|||||||
{{#if isPatch~}}
|
|
||||||
###
|
|
||||||
{{~else~}}
|
|
||||||
##
|
|
||||||
{{~/if}} {{#if @root.linkCompare~}}
|
|
||||||
[{{version}}]({{compareUrlFormat}})
|
|
||||||
{{~else}}
|
|
||||||
{{~version}}
|
|
||||||
{{~/if}}
|
|
||||||
{{~#if title}} "{{title}}"
|
|
||||||
{{~/if}}
|
|
||||||
{{~#if date}} ({{date}})
|
|
||||||
{{/if}}
|
|
||||||
13
dist/header2.hbs
vendored
13
dist/header2.hbs
vendored
@@ -1,13 +0,0 @@
|
|||||||
{{#if isPatch~}}
|
|
||||||
###
|
|
||||||
{{~else~}}
|
|
||||||
##
|
|
||||||
{{~/if}} {{#if @root.linkCompare~}}
|
|
||||||
[{{version}}]({{compareUrlFormat}})
|
|
||||||
{{~else}}
|
|
||||||
{{~version}}
|
|
||||||
{{~/if}}
|
|
||||||
{{~#if title}} "{{title}}"
|
|
||||||
{{~/if}}
|
|
||||||
{{~#if date}} ({{date}})
|
|
||||||
{{/if}}
|
|
||||||
53018
dist/index.js
vendored
53018
dist/index.js
vendored
File diff suppressed because one or more lines are too long
11
dist/template.hbs
vendored
11
dist/template.hbs
vendored
@@ -1,11 +0,0 @@
|
|||||||
{{> header}}
|
|
||||||
|
|
||||||
{{#each commitGroups}}
|
|
||||||
{{#each commits}}
|
|
||||||
{{> commit root=@root}}
|
|
||||||
{{/each}}
|
|
||||||
{{/each}}
|
|
||||||
|
|
||||||
{{> footer}}
|
|
||||||
|
|
||||||
|
|
||||||
23
dist/template1.hbs
vendored
23
dist/template1.hbs
vendored
@@ -1,23 +0,0 @@
|
|||||||
{{> header}}
|
|
||||||
|
|
||||||
{{#if noteGroups}}
|
|
||||||
{{#each noteGroups}}
|
|
||||||
|
|
||||||
### ⚠ {{title}}
|
|
||||||
|
|
||||||
{{#each notes}}
|
|
||||||
* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}}
|
|
||||||
{{/each}}
|
|
||||||
{{/each}}
|
|
||||||
{{/if}}
|
|
||||||
{{#each commitGroups}}
|
|
||||||
|
|
||||||
{{#if title}}
|
|
||||||
### {{title}}
|
|
||||||
|
|
||||||
{{/if}}
|
|
||||||
{{#each commits}}
|
|
||||||
{{> commit root=@root}}
|
|
||||||
{{/each}}
|
|
||||||
|
|
||||||
{{/each}}
|
|
||||||
23
dist/template2.hbs
vendored
23
dist/template2.hbs
vendored
@@ -1,23 +0,0 @@
|
|||||||
{{> header}}
|
|
||||||
|
|
||||||
{{#if noteGroups}}
|
|
||||||
{{#each noteGroups}}
|
|
||||||
|
|
||||||
### ⚠ {{title}}
|
|
||||||
|
|
||||||
{{#each notes}}
|
|
||||||
* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}}
|
|
||||||
{{/each}}
|
|
||||||
{{/each}}
|
|
||||||
{{/if}}
|
|
||||||
{{#each commitGroups}}
|
|
||||||
|
|
||||||
{{#if title}}
|
|
||||||
### {{title}}
|
|
||||||
|
|
||||||
{{/if}}
|
|
||||||
{{#each commits}}
|
|
||||||
{{> commit root=@root}}
|
|
||||||
{{/each}}
|
|
||||||
|
|
||||||
{{/each}}
|
|
||||||
Reference in New Issue
Block a user