Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
yu256 committed Mar 16, 2024
0 parents commit 3bd6195
Show file tree
Hide file tree
Showing 18 changed files with 2,130 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: 'publish'
on:
push:
branches:
- release

jobs:
publish:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [windows-latest]

runs-on: ${{ matrix.platform }}
steps:
- name: Checkout repository
uses: actions/[email protected]

- name: Rust setup
uses: dtolnay/rust-toolchain@stable

- name: Rust cache
uses: swatinem/rust-cache@v2
with:
shared-key: "vrc-yutils"

- name: build
run: cargo build --release

- name: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: draft-${{ matrix.platform }}
release_name: draft
draft: true
prerelease: false

- name: Upload Release Asset
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/release/vrc-yutils.exe
asset_name: vrc-yutils.exe
asset_content_type: application/octet-stream
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading

0 comments on commit 3bd6195

Please sign in to comment.