test new publish

This commit is contained in:
Aria Moradi 2021-05-24 16:25:42 +04:30
parent 08e8a9d105
commit 77d1402b8a

View File

@ -59,31 +59,67 @@ jobs:
**/react/node_modules **/react/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/react/yarn.lock') }} key: ${{ runner.os }}-${{ hashFiles('**/react/yarn.lock') }}
- name: Build and copy webUI, Build Jar # - name: Build and copy webUI, Build Jar
uses: eskatos/gradle-command-action@v1 # uses: eskatos/gradle-command-action@v1
with: # with:
build-root-directory: master # build-root-directory: master
wrapper-directory: master # wrapper-directory: master
arguments: :webUI:copyBuild :server:shadowJar --stacktrace # arguments: :webUI:copyBuild :server:shadowJar --stacktrace
wrapper-cache-enabled: true # wrapper-cache-enabled: true
dependencies-cache-enabled: true # dependencies-cache-enabled: true
configuration-cache-enabled: true # configuration-cache-enabled: true
- name: Mock Build and copy webUI, Build Jar
run: |
cd master/server/build
touch Tachidesk-v0.3.8-r580.jar
- name: Generate Tag Name
id: GenTagName
run: |
cd master/server/build
echo "::set-output name=value::$(ls *.jar | sed -e's/Tachidesk-v\|.jar//g')"
# - name: Create tag
# uses: actions/github-script@v3
# env:
# TAG: ${{ steps.GenTagName.value }}
# with:
# github-token: ${{ github.DEPLOY_PREVIEW_TOKEN }}
# script: |
# const { TAG } = process.env
#
# github.git.createTag({
# owner: "Suwayomi",
# repo: "Tachidesk",
# tag: TAG,
# })
- name: make windows packages - name: make windows packages
run: | run: |
cd master/scripts # cd master/scripts
./windows-bundler.sh win32 # ./windows-bundler.sh win32
./windows-bundler.sh win64 # ./windows-bundler.sh win64
cd master/server/build
touch Tachidesk-v0.3.8-r580.zip
# - name: Checkout preview branch - name: Checkout preview branch
# uses: actions/checkout@v2 uses: actions/checkout@v2
# with: with:
# repository: 'Suwayomi/Tachidesk-preview' repository: 'Suwayomi/Tachidesk-preview'
# ref: main ref: main
# path: preview path: preview
# token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }} token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }}
- name: Upload Release - name: Create Tag
env:
TAG: ${{ steps.GenTagName.value }}
run: |
cd preview
git tag $TAG
git push origin main $TAG
- name: Upload Preview Release
uses: ncipollo/release-action@v1 uses: ncipollo/release-action@v1
with: with:
token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }} token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }}
@ -91,6 +127,7 @@ jobs:
draft: true draft: true
owner: "Suwayomi" owner: "Suwayomi"
repo: "Tachidesk-preview" repo: "Tachidesk-preview"
tag: ${{ steps.GenTagName.value }}
# - name: Upload Release # - name: Upload Release