[Update] Clean up comments and ensure permissions are set for release job
This commit is contained in:
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@@ -9,6 +9,8 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
name: Build VRCT
|
name: Build VRCT
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -16,17 +18,17 @@ jobs:
|
|||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '22.15.0' # プロジェクトに合わせて調整してください
|
node-version: '22.15.0'
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.11' # プロジェクトに合わせて調整してください
|
python-version: '3.11'
|
||||||
|
|
||||||
- name: Set up Rust
|
- name: Set up Rust
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable # プロジェクトに合わせて調整してください
|
toolchain: stable
|
||||||
profile: minimal
|
profile: minimal
|
||||||
override: true
|
override: true
|
||||||
|
|
||||||
@@ -44,7 +46,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Get version from tag
|
- name: Get version from tag
|
||||||
id: get_version
|
id: get_version
|
||||||
shell: pwsh # 明示的に PowerShell を指定
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
$TAG_WITH_V = $env:GITHUB_REF -replace "^refs/tags/", ""
|
$TAG_WITH_V = $env:GITHUB_REF -replace "^refs/tags/", ""
|
||||||
$VERSION_NUM = $TAG_WITH_V -replace "^v", ""
|
$VERSION_NUM = $TAG_WITH_V -replace "^v", ""
|
||||||
|
|||||||
Reference in New Issue
Block a user