Skip to content

Commit

Permalink
Run test
Browse files Browse the repository at this point in the history
  • Loading branch information
Syer10 committed Jan 12, 2025
1 parent 81aff96 commit dad629a
Showing 1 changed file with 73 additions and 72 deletions.
145 changes: 73 additions & 72 deletions .github/workflows/build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -160,76 +161,76 @@ jobs:
path: upload/*
if-no-files-found: error

release:
needs: bundle
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: jar
path: release
- uses: actions/download-artifact@v4
with:
name: debian-all
path: release
- uses: actions/download-artifact@v4
with:
name: linux-assets
path: release
- uses: actions/download-artifact@v4
with:
name: linux-x64
path: release
- uses: actions/download-artifact@v4
with:
name: macOS-x64
path: release
- uses: actions/download-artifact@v4
with:
name: macOS-arm64
path: release
- uses: actions/download-artifact@v4
with:
name: windows-x64
path: release

- name: Checkout Preview branch
uses: actions/checkout@v4
with:
repository: "Suwayomi/Suwayomi-Server-preview"
ref: main
path: preview
token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }}

- name: Generate Tag Name
id: GenTagName
run: |
cd release
genTag=$(ls *.jar | sed -e's/Suwayomi-Server-\|.jar//g')
echo "$genTag"
echo "value=$genTag" >> $GITHUB_OUTPUT
- name: Create Tag
run: |
TAG="${{ steps.GenTagName.outputs.value }}"
echo "tag: $TAG"
cd preview
echo "{ \"latest\": \"$TAG\" }" > index.json
git add index.json
git config --global user.email \
"github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git commit -m "Updated to $TAG"
git push origin main
git tag $TAG
git push origin $TAG
- name: Upload Preview Release
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }}
repository: "Suwayomi/Suwayomi-Server-preview"
tag_name: ${{ steps.GenTagName.outputs.value }}
files: release/*
# release:
# needs: bundle
# runs-on: ubuntu-latest
# steps:
# - uses: actions/download-artifact@v4
# with:
# name: jar
# path: release
# - uses: actions/download-artifact@v4
# with:
# name: debian-all
# path: release
# - uses: actions/download-artifact@v4
# with:
# name: linux-assets
# path: release
# - uses: actions/download-artifact@v4
# with:
# name: linux-x64
# path: release
# - uses: actions/download-artifact@v4
# with:
# name: macOS-x64
# path: release
# - uses: actions/download-artifact@v4
# with:
# name: macOS-arm64
# path: release
# - uses: actions/download-artifact@v4
# with:
# name: windows-x64
# path: release
#
# - name: Checkout Preview branch
# uses: actions/checkout@v4
# with:
# repository: "Suwayomi/Suwayomi-Server-preview"
# ref: main
# path: preview
# token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }}
#
# - name: Generate Tag Name
# id: GenTagName
# run: |
# cd release
# genTag=$(ls *.jar | sed -e's/Suwayomi-Server-\|.jar//g')
# echo "$genTag"
# echo "value=$genTag" >> $GITHUB_OUTPUT
#
# - name: Create Tag
# run: |
# TAG="${{ steps.GenTagName.outputs.value }}"
# echo "tag: $TAG"
# cd preview
# echo "{ \"latest\": \"$TAG\" }" > index.json
# git add index.json
# git config --global user.email \
# "github-actions[bot]@users.noreply.github.com"
# git config --global user.name "github-actions[bot]"
# git commit -m "Updated to $TAG"
# git push origin main
#
# git tag $TAG
# git push origin $TAG
#
# - name: Upload Preview Release
# uses: softprops/action-gh-release@v2
# with:
# token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }}
# repository: "Suwayomi/Suwayomi-Server-preview"
# tag_name: ${{ steps.GenTagName.outputs.value }}
# files: release/*

0 comments on commit dad629a

Please sign in to comment.