diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 05e31aea..2ec452e5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,15 +47,15 @@ jobs: uses: thedoctor0/zip-release@master with: type: 'zip' - filename: IceLiveViewer-${{github.ref_name}}-${{steps.yaml-data.outputs.data}}-windows.zip + filename: IceLiveViewer-${{github.ref_name}}-windows.zip directory: build/windows/runner/Release - name: Release uses: softprops/action-gh-release@v1 with: - tag_name: v${{ steps.yaml-data.outputs.data }} + tag_name: ${{github.ref_name}} draft: true prerelease: true token: ${{ secrets.GITHUB_TOKEN }} files: | - build/windows/runner/Release/IceLiveViewer-${{github.ref_name}}-${{steps.yaml-data.outputs.data}}-windows.zip + build/windows/runner/Release/IceLiveViewer-${{github.ref_name}}-windows.zip diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml deleted file mode 100644 index 54c41e02..00000000 --- a/.github/workflows/version.yml +++ /dev/null @@ -1,49 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: Test - -# Controls when the workflow will run -on: - push: - tags: - - "**" - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# 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 called "build" - build: - # 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: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 - - - - name: Run read-yaml action - id: yaml-data - uses: KJ002/read-yaml@main - with: - file: './pubspec.yaml' - key-path: '["version"]' - - - name: Display read-yaml output - run: echo "${{ steps.yaml-data.outputs.data }}" - - - name: Run - run: echo "${{ github.ref }}" - - - name: Release - uses: softprops/action-gh-release@v1 - with: - tag_name: ${{ steps.yaml-data.outputs.data }} - draft: true - prerelease: true - token: ${{ secrets.GITHUB_TOKEN }} - files: | - README.md - pubspec.yaml