Skip to content

Release v1.0.2

Release v1.0.2 #25

Workflow file for this run

name: Create Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Generate Package.zip
run: find . -not -path '*/\.*' -print | xargs zip package.zip
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Get CHANGELOGS
run: python .release.py
- name: Pre Release
uses: softprops/action-gh-release@v1
if: contains(github.ref, 'beta') || contains(github.ref, 'alpha')
with:
body_path: ./result.txt
files: package.zip
prerelease: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v1
if: ${{ ! contains(github.ref, 'beta') && ! contains(github.ref, 'alpha') }}
with:
body_path: ./result.txt
files: package.zip
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}