diff --git a/.github/workflows/release-on-tag.yml b/.github/workflows/release-on-tag.yml deleted file mode 100644 index b47bcbf..0000000 --- a/.github/workflows/release-on-tag.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Create release for pushed tag - -on: - push: - tags: - - "*" - -jobs: - release-on-tag: - runs-on: windows-latest - permissions: - contents: write - steps: - - uses: actions/checkout@v5 - - uses: dtolnay/rust-toolchain@stable - - name: Create release - shell: bash - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TAG: ${{ github.ref_name }} - run: | - if gh release view "$TAG" >/dev/null 2>&1; then - echo "A release already exists for $TAG, skipping" - else - cargo build --release - prev_tag=$(gh release list --limit 100 --json tagName --jq '.[0].tagName') - notes="**Full Changelog**: https://github.com/${{ github.repository }}/compare/${prev_tag}...${TAG}" - gh release create "$TAG" target/release/gta-tools.exe \ - --title "$TAG" \ - --notes "$notes" - fi diff --git a/.github/workflows/release-retroactively.yml b/.github/workflows/release-retroactively.yml deleted file mode 100644 index 8cfa366..0000000 --- a/.github/workflows/release-retroactively.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Create releases for existing tags - -on: - workflow_dispatch: - -jobs: - release-retroactively: - runs-on: windows-latest - permissions: - contents: write - steps: - - name: Checkout repository - uses: actions/checkout@v5 - with: - fetch-depth: 0 - - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable - - name: Get tags and create release for each - shell: bash - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - mapfile -t tags < <(git tag -l) - echo "${#tags[@]} tags found." - prev_tag="" - for tag in "${tags[@]}"; do - if gh release view "$tag" >/dev/null 2>&1; then - echo "A release already exists for $tag, skipping" - else - echo "Proceeding with tag $tag" - git checkout "$tag" - cargo build --release - if [ -n "$prev_tag" ]; then - notes="**Full Changelog**: https://github.com/${{ github.repository }}/compare/${prev_tag}...${tag}" - else - notes="**Full Changelog**: https://github.com/${{ github.repository }}/commits/${tag}" - fi - gh release create "$tag" target/release/gta-tools.exe \ - --title "$tag" \ - --notes "$notes" - fi - prev_tag="$tag" - done diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml deleted file mode 100644 index 25a489e..0000000 --- a/.github/workflows/rust.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Build - -on: - push: - pull_request: - -env: - CARGO_TERM_COLOR: always - -jobs: - build: - runs-on: windows-latest - - steps: - - uses: actions/checkout@v4 - - name: Build - run: cargo build --release --verbose - - name: Check formatting - run: cargo fmt --check - - name: Clippy - run: cargo clippy - - name: Upload - uses: actions/upload-artifact@v6 - with: - name: gta-tools - path: target/release/gta-tools.exe