diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 9d0800f..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: Release Build - -on: - release: - types: [published] - workflow_dispatch: - inputs: - tag: - description: "Release tag to upload to (e.g. 0.1.0)" - required: false - type: string - -jobs: - build: - name: Build (${{ matrix.os }}) - runs-on: ${{ matrix.os }} - - strategy: - fail-fast: false - matrix: - os: [windows-latest, ubuntu-latest, macos-latest] - - permissions: - contents: write - - steps: - - uses: actions/checkout@v4 - - - uses: dtolnay/rust-toolchain@stable - - - name: Build release binary - run: cargo build --release - - # --- Get release tag --- - - name: Get release tag - id: get_tag - shell: bash - run: | - TAG="${{ inputs.tag }}" - - if [ "${{ github.event_name }}" = "release" ]; then - TAG="${{ github.event.release.tag_name }}" - elif [ -z "$TAG" ]; then - TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) - fi - - echo "tag=$TAG" >> $GITHUB_OUTPUT - - - name: Upload to GitHub Release - uses: softprops/action-gh-release@v2 - with: - tag_name: ${{ steps.get_tag.outputs.tag }} - files: | - target/release/mist* - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file