[RELEASE CI] test new release

This commit is contained in:
Aria Moradi
2021-02-13 13:32:59 +03:30
parent c80d344046
commit 3e2bf877d4
2 changed files with 122 additions and 15 deletions

View File

@@ -1,10 +1,9 @@
name: CI
name: Publish
on:
push:
branches:
- master
pull_request:
tags:
- 'v*'
jobs:
check_wrapper:
@@ -21,7 +20,6 @@ jobs:
build:
name: Build FatJar
needs: check_wrapper
if: "!startsWith(github.event.head_commit.message, '[SKIP CI]')"
runs-on: ubuntu-latest
steps:
@@ -70,27 +68,27 @@ jobs:
cd master
./.github/scripts/create-repo.sh
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Release body
draft: true
prerelease: false
- name: Upload Release
uses: AButler/upload-release-assets@v2.0
if: "startsWith(github.event.head_commit.message, '[RELEASE CI]')"
with:
files: 'master/repo/*'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: 'v.0.2.0'
# - name: Create Release
# if: github.event_name == 'push' && github.repository == 'AriaMoradi/Tachidesk' && startsWith(github.event.head_commit.message, '[RELEASE CI]')
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref }}
# release_name: Release ${{ github.ref }}
# body: |
# Release body
# draft: true
# prerelease: false
release-tag: ${{ github.ref }}
# - name: Checkout repo branch
# if: github.event_name == 'push' && github.repository == 'AriaMoradi/Tachidesk'