diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d17260d..7f0f1ec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -116,26 +116,13 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Mirror Windows to tekton-updates - uses: dmnemec/copy_file_to_another_repo_action@main + - name: Mirror to tekton-updates env: - API_TOKEN_GITHUB: ${{ secrets.PUBLIC_REPO_PAT }} - with: - source_file: 'windows-build/tekton_armageddon_windows.zip' - destination_repo: '${{ github.actor }}/tekton-updates' - destination_folder: 'v${{ steps.version.outputs.version }}' - user_email: 'action@github.com' - user_name: 'ReleaseBot' - commit_message: '[AUTO] Mirror v${{ steps.version.outputs.version }} Windows build' - - - name: Mirror Linux to tekton-updates - uses: dmnemec/copy_file_to_another_repo_action@main - env: - API_TOKEN_GITHUB: ${{ secrets.PUBLIC_REPO_PAT }} - with: - source_file: 'linux-build/tekton_armageddon_linux.zip' - destination_repo: '${{ github.actor }}/tekton-updates' - destination_folder: 'v${{ steps.version.outputs.version }}' - user_email: 'action@github.com' - user_name: 'ReleaseBot' - commit_message: '[AUTO] Mirror v${{ steps.version.outputs.version }} Linux build' + GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_PAT }} + run: | + gh release create "v${{ steps.version.outputs.version }}" \ + --repo "${{ github.actor }}/tekton-updates" \ + --title "v${{ steps.version.outputs.version }}" \ + --notes "Mirror of https://github.com/${{ github.repository }}/releases/tag/v${{ steps.version.outputs.version }}" \ + "windows-build/tekton_armageddon_windows.zip#Windows" \ + "linux-build/tekton_armageddon_linux.zip#Linux"