Skip to content

Commit 766b398

Browse files
committed
Testing crate release automation
1 parent 089c5bf commit 766b398

File tree

4 files changed

+24
-35
lines changed

4 files changed

+24
-35
lines changed

.github/workflows/CI.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
build_mode: [""]
1616
os: [macos-latest, ubuntu-latest]
1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1919
- name: Install Linux dependencies
2020
uses: ./.github/actions/install-linux-deps
2121
- name: Build sdl3
@@ -27,5 +27,22 @@ jobs:
2727
set -xeuo pipefail
2828
rustc --version
2929
cargo --version
30-
cargo build --features "${CI_BUILD_FEATURES} ${{matrix.feature}}" ${{matrix.build_mode}}
31-
cargo build --examples --features "${CI_BUILD_FEATURES} ${{matrix.feature}}" ${{matrix.build_mode}}
30+
cargo build --features "${CI_BUILD_FEATURES} ${{ matrix.feature }}" ${{ matrix.build_mode }}
31+
cargo build --examples --features "${CI_BUILD_FEATURES} ${{ matrix.feature }}" ${{ matrix.build_mode }}
32+
33+
release:
34+
name: Tag Release
35+
needs: build-from-source
36+
runs-on: ubuntu-latest
37+
if: github.ref == 'refs/heads/master'
38+
steps:
39+
- name: Checkout code
40+
uses: actions/checkout@v4
41+
- name: Create Release
42+
id: create_release
43+
uses: comnoco/create-release@v2
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
46+
with:
47+
tag_name: ${{ github.ref }}
48+
release_name: Release ${{ github.ref }}

.github/workflows/fmt.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,7 @@ jobs:
88
fmt:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions-rs/toolchain@v1
13-
with:
14-
profile: minimal
15-
toolchain: stable
16-
override: true
11+
- uses: actions/checkout@v4
12+
- uses: actions-rust-lang/setup-rust-toolchain@v1
1713
- run: rustup component add rustfmt
18-
- uses: actions-rs/cargo@v1
19-
with:
20-
command: fmt
21-
args: --all -- --check
14+
- run: cargo fmt --all -- --check

.github/workflows/pubilsh-crate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout repository
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414

1515
- name: Set up Rust toolchain
1616
uses: actions-rs/toolchain@v1

.github/workflows/tag-release.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)