Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
74cd85b0e8 | ||
|
|
c699d298bf | ||
|
|
ea45662ed9 |
No files matched your search
@@ -93,17 +93,22 @@ jobs:
|
|||||||
needs:
|
needs:
|
||||||
- metadata
|
- metadata
|
||||||
- deploy
|
- deploy
|
||||||
name: Publish Github Release
|
name: Create Github Pre-Release
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
administration: write
|
||||||
steps:
|
steps:
|
||||||
- name: Publish Release ${{ needs.metadata.outputs.version }}
|
- name: Pre-Release ${{ needs.metadata.outputs.version }}
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ needs.metadata.outputs.version }}
|
VERSION: ${{ needs.metadata.outputs.version }}
|
||||||
CHANGELOG: ${{ needs.metadata.outputs.changlelog }}
|
CHANGELOG: ${{ needs.metadata.outputs.changlelog }}
|
||||||
with:
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
github.rest.repos.createRelease({
|
github.rest.repos.createRelease({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
tag_name: process.env.VERSION,
|
tag_name: process.env.VERSION,
|
||||||
|
prerelease: true,
|
||||||
});
|
});
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
name: Test Release
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
version:
|
|
||||||
type: string
|
|
||||||
description: "Version Number"
|
|
||||||
jobs:
|
|
||||||
release:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
name: Publish Github Release
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
steps:
|
|
||||||
- name: "${{ github.event.inputs.version }}"
|
|
||||||
uses: actions/github-script@v6
|
|
||||||
env:
|
|
||||||
VERSION: "${{ github.event.inputs.version }}"
|
|
||||||
with:
|
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
script: |
|
|
||||||
github.rest.repos.createRelease({
|
|
||||||
owner: context.repo.owner,
|
|
||||||
repo: context.repo.repo,
|
|
||||||
tag_name: process.env.VERSION,
|
|
||||||
});
|
|
||||||
pre:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
name: Publish Github PreRelease
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
steps:
|
|
||||||
- name: "${{ github.event.inputs.version }}"
|
|
||||||
uses: actions/github-script@v6
|
|
||||||
env:
|
|
||||||
VERSION: pre-${{ github.event.inputs.version }}
|
|
||||||
with:
|
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
script: |
|
|
||||||
github.rest.repos.createRelease({
|
|
||||||
owner: context.repo.owner,
|
|
||||||
repo: context.repo.repo,
|
|
||||||
tag_name: process.env.VERSION,
|
|
||||||
});
|
|
||||||
Reference in new issue
Block a user