Test launcher

This commit is contained in:
Syer10
2023-07-27 18:24:43 -04:00
parent a2fad83a19
commit 7ff83c7ab9

View File

@@ -3,7 +3,7 @@ name: CI build
on: on:
push: push:
branches: branches:
- master - use_launcher
jobs: jobs:
check_wrapper: check_wrapper:
@@ -123,80 +123,80 @@ jobs:
path: upload/* path: upload/*
if-no-files-found: error if-no-files-found: error
release: # release:
needs: bundle # needs: bundle
runs-on: ubuntu-latest # runs-on: ubuntu-latest
steps: # steps:
- uses: actions/download-artifact@v3 # - uses: actions/download-artifact@v3
with: # with:
name: jar # name: jar
path: release # path: release
- uses: actions/download-artifact@v3 # - uses: actions/download-artifact@v3
with: # with:
name: debian-all # name: debian-all
path: release # path: release
- uses: actions/download-artifact@v3 # - uses: actions/download-artifact@v3
with: # with:
name: linux-assets # name: linux-assets
path: release # path: release
- uses: actions/download-artifact@v3 # - uses: actions/download-artifact@v3
with: # with:
name: linux-x64 # name: linux-x64
path: release # path: release
- uses: actions/download-artifact@v3 # - uses: actions/download-artifact@v3
with: # with:
name: macOS-x64 # name: macOS-x64
path: release # path: release
- uses: actions/download-artifact@v3 # - uses: actions/download-artifact@v3
with: # with:
name: macOS-arm64 # name: macOS-arm64
path: release # path: release
- uses: actions/download-artifact@v3 # - uses: actions/download-artifact@v3
with: # with:
name: windows-x64 # name: windows-x64
path: release # path: release
- uses: actions/download-artifact@v3 # - uses: actions/download-artifact@v3
with: # with:
name: windows-x86 # name: windows-x86
path: release # path: release
#
- name: Checkout Preview branch # - name: Checkout Preview branch
uses: actions/checkout@v3 # uses: actions/checkout@v3
with: # with:
repository: "Suwayomi/Tachidesk-Server-preview" # repository: "Suwayomi/Tachidesk-Server-preview"
ref: main # ref: main
path: preview # path: preview
token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }} # token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }}
#
- name: Generate Tag Name # - name: Generate Tag Name
id: GenTagName # id: GenTagName
run: | # run: |
cd release # cd release
genTag=$(ls *.jar | sed -e's/Tachidesk-Server-\|.jar//g') # genTag=$(ls *.jar | sed -e's/Tachidesk-Server-\|.jar//g')
echo "$genTag" # echo "$genTag"
echo "::set-output name=value::$genTag" # echo "::set-output name=value::$genTag"
#
- name: Create Tag # - name: Create Tag
run: | # run: |
TAG="${{ steps.GenTagName.outputs.value }}" # TAG="${{ steps.GenTagName.outputs.value }}"
echo "tag: $TAG" # echo "tag: $TAG"
cd preview # cd preview
echo "{ \"latest\": \"$TAG\" }" > index.json # echo "{ \"latest\": \"$TAG\" }" > index.json
git add index.json # git add index.json
git config --global user.email \ # git config --global user.email \
"github-actions[bot]@users.noreply.github.com" # "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]" # git config --global user.name "github-actions[bot]"
git commit -m "Updated to $TAG" # git commit -m "Updated to $TAG"
git push origin main # git push origin main
#
git tag $TAG # git tag $TAG
git push origin $TAG # git push origin $TAG
#
- name: Upload Preview Release # - name: Upload Preview Release
uses: softprops/action-gh-release@v1 # uses: softprops/action-gh-release@v1
with: # with:
token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }} # token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }}
repository: "Suwayomi/Tachidesk-Server-preview" # repository: "Suwayomi/Tachidesk-Server-preview"
tag_name: ${{ steps.GenTagName.outputs.value }} # tag_name: ${{ steps.GenTagName.outputs.value }}
files: release/* # files: release/*