From a790a8682b8066b07c5f56717dd5d7467c2f138c Mon Sep 17 00:00:00 2001 From: Robin Huang Date: Sat, 21 Dec 2024 15:19:33 -0800 Subject: [PATCH] Create test release. --- .github/workflows/test-release.yml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/test-release.yml diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml new file mode 100644 index 00000000..855e27b5 --- /dev/null +++ b/.github/workflows/test-release.yml @@ -0,0 +1,31 @@ +name: Test ToDesktop Action + +on: + workflow_dispatch: + inputs: + release_tag: + description: 'Release tag to test with' + required: true + default: 'test-v0.0.1' + +jobs: + test-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Create test release + run: | + gh release create ${{ github.event.inputs.release_tag }} \ + --title "Test Release" \ + --notes "This is a test release" \ + --draft + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - uses: ./.github/actions/build/todesktop + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TODESKTOP_EMAIL: ${{ secrets.TODESKTOP_EMAIL }} + TODESKTOP_ACCESS_TOKEN: ${{ secrets.TODESKTOP_ACCESS_TOKEN }} + RELEASE_TAG: ${{ github.event.inputs.release_tag }}