From 188d3ccf9c017377953f6a1ec5e33ba6d38925d0 Mon Sep 17 00:00:00 2001 From: Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> Date: Wed, 11 Jan 2023 17:29:33 +0000 Subject: Create main.yml --- .github/workflows/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..345c05d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,17 @@ +name: Main + +on: push + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + ${{ github.workspace }}/gui/decky_installer.desktop + ${{ github.workspace }}/gui/user_install_script.sh -- cgit v1.2.3 From 799d06551678093bf831f2d9eee780b59276926c Mon Sep 17 00:00:00 2001 From: Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> Date: Wed, 11 Jan 2023 17:35:51 +0000 Subject: Update main.yml --- .github/workflows/main.yml | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 345c05d..01080ba 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,17 +1,25 @@ -name: Main +name: "tagged-release" -on: push +on: + push: + tags: + - "v*" jobs: - build: - runs-on: ubuntu-latest + tagged-release: + name: "Tagged Release" + runs-on: "ubuntu-latest" + steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Release - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') + # ... + - name: "Build & test" + run: | + echo "done!" + + - uses: "marvinpinto/action-automatic-releases@latest" with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + prerelease: false files: | - ${{ github.workspace }}/gui/decky_installer.desktop - ${{ github.workspace }}/gui/user_install_script.sh + LICENSE.txt + *.jar -- cgit v1.2.3 From 1a897bd763f82f285bcccf4cefe0dfbd93a01fe0 Mon Sep 17 00:00:00 2001 From: Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> Date: Wed, 11 Jan 2023 17:36:17 +0000 Subject: Update main.yml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 01080ba..6b47783 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,5 +21,5 @@ jobs: repo_token: "${{ secrets.GITHUB_TOKEN }}" prerelease: false files: | - LICENSE.txt - *.jar + ${{ github.workspace }}/gui/decky_installer.desktop + ${{ github.workspace }}/gui/user_install_script.sh -- cgit v1.2.3 From aa63ef1b1bfe1091b56830fdac42c86c873ccdf4 Mon Sep 17 00:00:00 2001 From: Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> Date: Wed, 11 Jan 2023 18:10:29 +0000 Subject: Update main.yml --- .github/workflows/main.yml | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6b47783..75cf17d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,25 +1,23 @@ -name: "tagged-release" +name: "release" on: push: - tags: - - "v*" + branches: + - main jobs: - tagged-release: - name: "Tagged Release" - runs-on: "ubuntu-latest" - + build: + runs-on: ubuntu-latest steps: - # ... - - name: "Build & test" - run: | - echo "done!" + - uses: actions/checkout@v1 + - name: "find env" - - uses: "marvinpinto/action-automatic-releases@latest" + - uses: xresloader/upload-to-github-release@main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - prerelease: false - files: | - ${{ github.workspace }}/gui/decky_installer.desktop - ${{ github.workspace }}/gui/user_install_script.sh + file: "${{ github.workspace }}/gui/decky_installer.desktop;${{ github.workspace }}/gui/user_install_script.sh" + delete_file: "random-name-*.txt" + branches: "main;dev" + verbose: true + prerelease: true -- cgit v1.2.3 From 0c64c1a3967a171c28d3688e40e2411fc6fecbb6 Mon Sep 17 00:00:00 2001 From: Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> Date: Wed, 11 Jan 2023 18:13:07 +0000 Subject: Update main.yml --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 75cf17d..2ed7ca2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,15 +2,15 @@ name: "release" on: push: - branches: - - main + tags: + - "*" jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: "find env" + - name: Checkout 🧰 + uses: actions/checkout@v3 - uses: xresloader/upload-to-github-release@main env: -- cgit v1.2.3 From 14e976e6a46241abee20ac340f9be435e3a4d938 Mon Sep 17 00:00:00 2001 From: Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> Date: Wed, 11 Jan 2023 18:16:18 +0000 Subject: Update main.yml --- .github/workflows/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2ed7ca2..20e4196 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,7 +17,5 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: file: "${{ github.workspace }}/gui/decky_installer.desktop;${{ github.workspace }}/gui/user_install_script.sh" - delete_file: "random-name-*.txt" - branches: "main;dev" verbose: true - prerelease: true + -- cgit v1.2.3 From ba154c2e6e3c0ead8d1ca8f9433ee3e9c49c10af Mon Sep 17 00:00:00 2001 From: Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> Date: Wed, 11 Jan 2023 18:20:58 +0000 Subject: Update main.yml --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 20e4196..5adf0ca 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,6 +16,9 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: + tag_name: ${{ github.ref }} + draft: true + update_latest_release: true file: "${{ github.workspace }}/gui/decky_installer.desktop;${{ github.workspace }}/gui/user_install_script.sh" verbose: true -- cgit v1.2.3 From f60d1704d0b6bfd5ea21682cf9d4ff53eff0a1f4 Mon Sep 17 00:00:00 2001 From: Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> Date: Wed, 11 Jan 2023 18:22:18 +0000 Subject: Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5adf0ca..3f3fcfe 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,7 +17,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ github.ref }} - draft: true + draft: false update_latest_release: true file: "${{ github.workspace }}/gui/decky_installer.desktop;${{ github.workspace }}/gui/user_install_script.sh" verbose: true -- cgit v1.2.3 From 426d820c5dc661bd29b3b7c1377cfc59f4a7f3b9 Mon Sep 17 00:00:00 2001 From: Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> Date: Wed, 11 Jan 2023 18:24:08 +0000 Subject: Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3f3fcfe..add9dbf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: with: tag_name: ${{ github.ref }} draft: false - update_latest_release: true + update_latest_release: false file: "${{ github.workspace }}/gui/decky_installer.desktop;${{ github.workspace }}/gui/user_install_script.sh" verbose: true -- cgit v1.2.3 From a5506f85711fd1fb5446ac9ec4ed646a740c5092 Mon Sep 17 00:00:00 2001 From: Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> Date: Wed, 11 Jan 2023 19:55:19 +0000 Subject: Update main.yml --- .github/workflows/main.yml | 73 +++++++++++++++++++++++++++++++++++++++------- 1 file changed, 62 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index add9dbf..bed5397 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,24 +1,75 @@ name: "release" on: - push: - tags: - - "*" + workflow_dispatch: + inputs: + bump: + type: choice + description: Semver to bump + default: 'none' + options: + - none + - patch + - minor + - major jobs: - build: + release: runs-on: ubuntu-latest steps: + - name: Print input + run : | + echo "bump: ${{ github.event.inputs.bump }}\n" + - name: Checkout 🧰 uses: actions/checkout@v3 - - uses: xresloader/upload-to-github-release@main + - name: Install semver-tool asdf + uses: asdf-vm/actions/install@v1 + with: + tool_versions: | + semver 3.3.0 + + - name: Get latest release + uses: rez0n/actions-github-release@main + id: latest_release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} + repository: "SteamDeckHomebrew/decky-installer" + type: "nodraft" + + - name: Prepare tag ⚙️ + id: ready_tag + run: | + export VERSION=${{ steps.latest_release.outputs.release }} + echo "VERS: $VERSION" + OUT="notsemver" + if [[ "${{github.event.inputs.bump}}" != "none" ]]; then + OUT=$(semver bump ${{github.event.inputs.bump}} "$VERSION") + printf "OUT: ${OUT}\n" + else + printf "previous tag is a release, but no bump selected. Defaulting to a patch bump.\n" + OUT=$(semver bump patch "$VERSION") + printf "OUT: ${OUT}\n" + echo "vOUT: v$OUT" + echo tag_name=v$OUT >> $GITHUB_OUTPUT + - name: Push tag 📤 + uses: rickstaa/action-create-tag@v1.3.2 + if: ${{ steps.ready_tag.outputs.tag_name && github.event_name == 'workflow_dispatch' && !env.ACT }} + with: + tag: ${{ steps.ready_tag.outputs.tag_name }} + message: Pre-release ${{ steps.ready_tag.outputs.tag_name }} + + - name: Release 📦 + uses: softprops/action-gh-release@v1 + if: ${{ github.event_name == 'workflow_dispatch' && !env.ACT }} with: - tag_name: ${{ github.ref }} - draft: false - update_latest_release: false - file: "${{ github.workspace }}/gui/decky_installer.desktop;${{ github.workspace }}/gui/user_install_script.sh" - verbose: true + name: | + ${{ github.workspace }}/gui/decky_installer.desktop + ${{ github.workspace }}/gui/user_install_script.sh + tag_name: ${{ steps.ready_tag.outputs.tag_name }} + files: ./dist/PluginLoader + prerelease: false + generate_release_notes: true + draft: true -- cgit v1.2.3 From 5868b6cfdf3e3232cfb290a7658306fb850feed2 Mon Sep 17 00:00:00 2001 From: Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> Date: Wed, 11 Jan 2023 19:57:55 +0000 Subject: Update main.yml --- .github/workflows/main.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bed5397..fb80daf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,10 +47,11 @@ jobs: if [[ "${{github.event.inputs.bump}}" != "none" ]]; then OUT=$(semver bump ${{github.event.inputs.bump}} "$VERSION") printf "OUT: ${OUT}\n" - else - printf "previous tag is a release, but no bump selected. Defaulting to a patch bump.\n" - OUT=$(semver bump patch "$VERSION") - printf "OUT: ${OUT}\n" + else + printf "no bump selected. Defaulting to a patch bump.\n" + OUT=$(semver bump patch "$VERSION") + printf "OUT: ${OUT}\n" + fi echo "vOUT: v$OUT" echo tag_name=v$OUT >> $GITHUB_OUTPUT - name: Push tag 📤 -- cgit v1.2.3 From 81f3853886bb006a666792b23d51746a8ea1ed1b Mon Sep 17 00:00:00 2001 From: Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> Date: Wed, 11 Jan 2023 20:12:28 +0000 Subject: Update main.yml --- .github/workflows/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fb80daf..69f5bfc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,6 +54,7 @@ jobs: fi echo "vOUT: v$OUT" echo tag_name=v$OUT >> $GITHUB_OUTPUT + - name: Push tag 📤 uses: rickstaa/action-create-tag@v1.3.2 if: ${{ steps.ready_tag.outputs.tag_name && github.event_name == 'workflow_dispatch' && !env.ACT }} @@ -65,11 +66,11 @@ jobs: uses: softprops/action-gh-release@v1 if: ${{ github.event_name == 'workflow_dispatch' && !env.ACT }} with: - name: | + name: Version ${{ steps.ready_tag.outputs.tag_name }} + tag_name: ${{ steps.ready_tag.outputs.tag_name }} + files: | ${{ github.workspace }}/gui/decky_installer.desktop ${{ github.workspace }}/gui/user_install_script.sh - tag_name: ${{ steps.ready_tag.outputs.tag_name }} - files: ./dist/PluginLoader prerelease: false generate_release_notes: true draft: true -- cgit v1.2.3 From 1415b5dd75a82d0ac24fadc48fafcfa2fb3bf484 Mon Sep 17 00:00:00 2001 From: Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> Date: Wed, 11 Jan 2023 20:16:44 +0000 Subject: Update main.yml --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 69f5bfc..dc484b4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -71,6 +71,9 @@ jobs: files: | ${{ github.workspace }}/gui/decky_installer.desktop ${{ github.workspace }}/gui/user_install_script.sh + ${{ github.workspace }}/cli/install_prerelease.sh + ${{ github.workspace }}/cli/install_release.sh + ${{ github.workspace }}/cli/uninstall.sh prerelease: false generate_release_notes: true draft: true -- cgit v1.2.3