From 3fb1e37473ce998b223844f2ae0275a4ebe3672f Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Thu, 23 Feb 2023 08:36:56 -0600 Subject: [PATCH] remove old winget manual release ci (#8177) # Description This PR removes the old winget manual release ci. With the updated winget release, we're able to specify the version we want to push to winget manually in case it fails. You just choose the `Submit Nushell package to Windows Package Manager Community Repository` action, click the run workflow and specify the tag. ![image](https://user-images.githubusercontent.com/343840/220924670-411dd683-0d17-490a-901b-bf2a49d7fa77.png) # User-Facing Changes _(List of all changes that impact the user experience here. This helps us keep track of breaking changes.)_ # Tests + Formatting Don't forget to add tests that cover your changes. Make sure you've run and fixed any issues with these commands: - `cargo fmt --all -- --check` to check standard code formatting (`cargo fmt --all` applies these changes) - `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect` to check that you're using the standard code style - `cargo test --workspace` to check that all tests pass # After Submitting If your PR had any user-facing changes, update [the documentation](https://github.com/nushell/nushell.github.io) after the PR is merged, if necessary. This will help us keep the docs up to date. --- .github/workflows/manual.yml | 41 ------------------------------------ 1 file changed, 41 deletions(-) delete mode 100644 .github/workflows/manual.yml diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml deleted file mode 100644 index 448a9cd558..0000000000 --- a/.github/workflows/manual.yml +++ /dev/null @@ -1,41 +0,0 @@ -# This is a basic workflow that is manually triggered -# Don't run it unless you know what you are doing - -name: Manual Workflow for Winget Submission - -# Controls when the action will run. Workflow runs when manually triggered using the UI -# or API. -on: - workflow_dispatch: - # Inputs the workflow accepts. - inputs: - ver: - # Friendly description to be shown in the UI instead of 'ver' - description: 'The nushell version to release' - # Default value if no value is explicitly provided - default: '0.66.0' - # Input has to be provided for the workflow to run - required: true - uri: - # Friendly description to be shown in the UI instead of 'uri' - description: 'The nushell windows .msi package URI to publish' - # Default value if no value is explicitly provided - default: 'https://github.com/nushell/nushell/releases/download/0.66.0/nu-0.66.0-x86_64-pc-windows-msvc.msi' - # Input has to be provided for the workflow to run - required: true - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job - rls-winget-pkg: - name: Publish winget package manually - # The type of runner that the job will run on - runs-on: windows-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Runs commands using the runners shell - - name: Submit package to Windows Package Manager Community Repository Manually - run: | - iwr https://github.com/microsoft/winget-create/releases/download/v1.0.4.0/wingetcreate.exe -OutFile wingetcreate.exe - .\wingetcreate.exe update Nushell.Nushell -s -v ${{ github.event.inputs.ver }} -u ${{ github.event.inputs.uri }} -t ${{ secrets.NUSHELL_PAT }}