Browse Source

Merge pull request #16863 from abpframework/update-action-token

Create new action to publish release
pull/16869/head
Alper Ebiçoğlu 3 years ago
committed by GitHub
parent
commit
058c35cad2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 44
      .github/workflows/publish-release.yml
  2. 2
      .github/workflows/update-versions.yml

44
.github/workflows/publish-release.yml

@ -0,0 +1,44 @@
name: Create Release
on:
workflow_dispatch:
inputs:
tag_name:
description: 'Tag Name'
required: true
prerelease:
description: 'Pre-release?'
required: true
branchName:
description: 'Branch Name'
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.branchName }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
with:
tag_name: ${{ github.event.inputs.tag_name }}
release_name: ${{ github.event.inputs.tag_name }}
draft: false
prerelease: ${{ github.event.inputs.prerelease }}
- name: Checkout code at tag
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.tag_name }}
- name: Build Project
run: |
# add your build commands here, depending on your project's requirements.
echo "Build project here"

2
.github/workflows/update-versions.yml

@ -28,6 +28,6 @@ jobs:
- name: Update latest-versions.json and create PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: |
python .github/scripts/update_versions.py

Loading…
Cancel
Save