updates n shit

This commit is contained in:
Aria Moradi
2021-08-07 23:54:58 +04:30
parent 6e38c52d7a
commit b089d0c9af

View File

@@ -47,13 +47,25 @@ jobs:
echo "$genTag" echo "$genTag"
echo "::set-output name=value::$genTag" echo "::set-output name=value::$genTag"
- name: Checkout preview branch
uses: actions/checkout@v2
with:
repository: 'Suwayomi/Tachidesk-WebUI-preview'
ref: main
path: preview
token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }}
- 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 master 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.email "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 push origin main
git tag $TAG git tag $TAG
git push origin $TAG git push origin $TAG