Skip to content

Commit a2b4c21

Browse files
authored
Refactor devcontainer settings and update README.md
This commit refactors the devcontainer settings in the .devcontainer/devcontainer.json file. It updates the window.menuBarVisibility, workbench.activityBar.location, debug.toolBarLocation, editor.formatOnSave, editor.formatOnPaste, and git.autofetch settings. Additionally, it adds the workbench.colorTheme setting to use the "Default Light Modern" theme. The commit also updates the README.md file by changing the repository name from "Rust Rust Template" to "Rust Template". These changes improve the development experience and make the repository template more user-friendly.
1 parent 39facb0 commit a2b4c21

File tree

3 files changed

+67
-14
lines changed

3 files changed

+67
-14
lines changed

.devcontainer/devcontainer.json

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,23 @@
88
"vscode": {
99
"settings": {
1010
"window.menuBarVisibility": "classic",
11-
"workbench.activityBar.location": "top",
12-
"debug.toolBarLocation": "docked",
11+
"workbench.activityBar.location": "top",
12+
"debug.toolBarLocation": "docked",
13+
"workbench.colorTheme": "Default Light Modern",
1314
"editor.formatOnSave": true,
14-
"amazonQ.telemetry": false,
15+
"editor.formatOnPaste": true,
16+
"git.autofetch": true,
1517
"[markdown]": {
1618
"editor.defaultFormatter": "esbenp.prettier-vscode"
17-
},
18-
"[rust]": {
19-
"editor.defaultFormatter": "esbenp.prettier-vscode"
20-
},
21-
"[json]": {
22-
"editor.defaultFormatter": "esbenp.prettier-vscode"
23-
},
24-
"[yaml]": {
25-
"editor.defaultFormatter": "esbenp.prettier-vscode"
2619
}
2720
},
2821
"extensions": [
22+
"Github.copilot",
2923
"github.vscode-pull-request-github",
3024
"github.vscode-github-actions",
3125
"oderwat.indent-rainbow",
3226
"quicktype.quicktype",
3327
"ahebrank.yaml2json",
34-
"amazonwebservices.amazon-q-vscode",
3528
"Gruntfuggly.todo-tree",
3629
"esbenp.prettier-vscode"
3730
]

.github/workflows/release.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Release
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
push:
8+
tags:
9+
- v[0-9]+.*
10+
11+
env:
12+
CARGO_TERM_COLOR: always
13+
14+
jobs:
15+
create-release:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: taiki-e/create-gh-release-action@v1
20+
with:
21+
# (optional) Path to changelog.
22+
#changelog: CHANGELOG.md
23+
# (required) GitHub token for creating GitHub Releases.
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
26+
upload-assets:
27+
needs: create-release
28+
strategy:
29+
matrix:
30+
include:
31+
- target: x86_64-unknown-linux-gnu
32+
os: ubuntu-latest
33+
- target: x86_64-apple-darwin
34+
os: macos-latest
35+
- target: x86_64-pc-windows-msvc
36+
os: windows-latest
37+
runs-on: ${{ matrix.os }}
38+
steps:
39+
- uses: actions/checkout@v4
40+
- uses: taiki-e/upload-rust-binary-action@v1
41+
with:
42+
# (required) Comma-separated list of binary names (non-extension portion of filename) to build and upload.
43+
# Note that glob pattern is not supported yet.
44+
bin: trustier
45+
# (optional) Target triple, default is host triple.
46+
# This is optional but it is recommended that this always be set to
47+
# clarify which target you are building for if macOS is included in
48+
# the matrix because GitHub Actions changed the default architecture
49+
# of macos-latest since macos-14.
50+
target: ${{ matrix.target }}
51+
# (optional) On which platform to distribute the `.tar.gz` file.
52+
# [default value: unix]
53+
# [possible values: all, unix, windows, none]
54+
tar: unix
55+
# (optional) On which platform to distribute the `.zip` file.
56+
# [default value: windows]
57+
# [possible values: all, unix, windows, none]
58+
zip: windows
59+
# (required) GitHub token for uploading assets to GitHub Releases.
60+
token: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Rust Rust Template
1+
# Rust Template
22

33
A GitHub repository template to create an empty rust based repository with a devcontainer.

0 commit comments

Comments
 (0)